LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Using BIND to resolve internal non-FQDN names (https://www.linuxquestions.org/questions/linux-server-73/using-bind-to-resolve-internal-non-fqdn-names-752426/)

ddenton 09-03-2009 10:50 AM

Using BIND to resolve internal non-FQDN names
 
Hello all. I have an RHEL5 server running BIND. I'd like to be able to resolve internal, non-FQDN names such as "wiki" for the company internal wiki. in my named.conf file I have the following:

Code:

zone "wiki" IN {
        type master;
        file "wiki";
        allow-update { none; };
};

In my zone record I have the following:

Code:

$TTL    86400
@      IN      SOA    localhost      root (
                                        42              ; serial ()
                                        3H              ; refresh
                                        15M            ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
        IN      NS      localhost
        IN      A      192.168.100.233

wiki    IN      A      192.168.100.233

Named-checkzone returns no errors, and nslookup works when specifying the server explicitly, but no browser resolves the name when entered in the address line. I know this by no means a standard use of BIND, but I'm sure someone out there's pulled this off. I did see when googling someone suggest "load the root zone (.) as master, and add your "hosts" as TLDs, using CNAMEs", but tried that and probably did it wrong since it didn't work. Any help is greatly appreciated...

bathory 09-03-2009 12:20 PM

You miss some trailing dots in you zone file, so it's better use this:
Code:

$TTL    86400
@      IN      SOA    wiki      root@localhost. (
                                        43              ; serial ()
                                        3H              ; refresh
                                        15M            ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
        IN      NS      localhost.
        IN      A      192.168.100.233

Also make sure that /etc/resolv.conf does not contain a line starting with "domain ..." or "search ..." and your nameserver is the 1st in the list.


All times are GMT -5. The time now is 11:56 PM.