Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am working to create an internal DNS server to help manage hostnames etc for the servers on my internal network. I have named all set up and it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2012
    Posts
    15

    Question DNS Zone File Question


    Hello,

    I am working to create an internal DNS server to help manage hostnames etc for the servers on my internal network.

    I have named all set up and it runs great.

    However the question I have regards creating a zone file so that the DNS server redirects computer hostnames to their respective IP's without having to tag on a domain.

    so currently if you want to ssh to a machine named "Kiska" using a hostname you have to use:

    Code:
    # ssh kiska.example.lan:
    however I would prefer to simply use only the hostname.

    example:
    Code:
    # ssh kiska:
    How would I create a zone file that has an empty domain?

    Thanks for the help.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,378
    In case you are using bind, afaik you cannot create a "catch-all" zone.

    But this is not necessary anyway.
    On each client in /etc/resolv.con, define
    Code:
    domain example.lan
    or, if you have multiple domains to try
    Code:
    search example.lan example2.lan
    Of course, you do not want to modify each /etc/resolv.conf manually, so this info usually is distributed via dhcp
    dhcp-options(5) - Linux man page
    Code:
    option domain-name text; 
    option domain-search domain-list;
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •