BIND config files

Get the latest on wired & wireless, talk network setups, get help with connectivity problems, web hosts, etc.
Post Reply
User avatar
infinite_
Bat Country
Posts: 1353
Joined: Fri Jun 04, 2004 7:19 pm
Location: Australia

BIND config files

Post by infinite_ » Sun Dec 20, 2009 4:27 pm

Sup.

So I'm setting up BIND on a DNS server and it appears to function as it should for forward lookups, but I want to get anyone familiar with BIND to check the config because there's conflicting info on the internet. I want to be sure I'm using the right syntax and shit.

Here's the forward lookup config:

Code: Select all

$TTL    3600

gtfo.local.             IN      SOA     blackhole.gtfo.local.   root.gtfo.local. (
        1       ; Serial
        10800   ; Refresh
        3600    ; Retry
        604800  ; Expire
        86400   ; Minimum TTL
        )

;
;       DNS Servers
;
gtfo.local.             IN      NS      blackhole

;
;       Computer names and records
;
hackedpackard   IN      A       192.168.3.1
blackhole       IN      A       192.168.3.2

;
;       Aliases
;
;www            IN      CNAME   blackhole

;
;       Mail MX Records
;
;gtfo.local.            IN      MX      10                      blackhole.gtfo.local.
Here's the reverse lookup config:

Code: Select all

$TTL    3600

3.168.192.in-addr.arpa. IN      SOA     blackhole.gtfo.local.   root.gtfo.local. (
        1       ; Serial
        10800   ; Refresh
        3600    ; Retry
        604800  ; Expire
        86400   ; Minimum TTL
        )

;
;       DNS Servers
;
3.168.192.in-addr.arpa. NS      blackhole.gtfo.local.

;
;       Computer IPs
;
1      PTR     hackedpackard
2     PTR     blackhole
The only two questions I have are:
1) Should the computer names in the config use the FQDN (blackhole.gtfo.local) or is the short name (blackhole) fine?
2) Does a period (".") have to be placed at the end of the computer names?

Anyone see anything incorrect in these configs?
My effort to help you will never exceed your effort to explain the problem.

User avatar
IceDane
Because I Can
Posts: 2652
Joined: Wed May 12, 2004 9:25 am

Re: BIND config files

Post by IceDane » Sun Dec 20, 2009 6:34 pm

I'm not very familiar with this, but I remember reading an article where it said that because someone forgot to put the period in front of the domain names, some part of some country's internet was down for a while, IIRC.

By the way - why are you setting up a DNS server at home? Or isn't this at home? If it is at home; is there some speed advantage, perhaps?

User avatar
infinite_
Bat Country
Posts: 1353
Joined: Fri Jun 04, 2004 7:19 pm
Location: Australia

Re: BIND config files

Post by infinite_ » Mon Dec 21, 2009 12:05 am

IceDane wrote:By the way - why are you setting up a DNS server at home? Or isn't this at home? If it is at home; is there some speed advantage, perhaps?
This is at home. I'm setting it up because it's much less effort to type in

Code: Select all

$ ssh blackhole
rather than

Code: Select all

$ ssh 192.168.3.2
I'm moving all PCs in my house to *Nix and for some reason my router's DNS doesn't resolve hostnames of non-Windows machines.
Also, it's just another practical task worth doing just so I know I've done it and can do it. Windows 2003 Server DNS server is a matter of clicking "Next" with little need for actually understanding DNS, so I got a more knowledge out of setting up BIND.

This server will become my firewall/gateway, and I intend on installing a mail server and maybe some proxy server.... not sure about that last one.
My effort to help you will never exceed your effort to explain the problem.

Post Reply