[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Set up headless Bubba Two for Bind9 nameserver



Thu, 07 Jul 2011 14:08:26 +0000 keltezéssel Camaleón azt írta:

> On Wed, 06 Jul 2011 20:08:02 +0000, Csanyi Pal wrote:
> 
> (...)
> 
After I setup firewall/gateway on my Bubba I setup the system so I'm 
being use nameservers of my ISP:

I have in: /etc/dhcp/dhclient.conf
----
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes;

and in: /etc/dhcp3/dhclient.conf
----
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes;
require subnet-mask, domain-name-servers;

and in: /etc/resolv.conf
nameserver 91.102.231.242
nameserver 91.102.231.241

These lines in resolv.conf I get automatically probably from dhcp-client 
that run on my Bubba and get nameservers from my ISP.

That is the state right now regarding my bind9 on my Bubba.

Now I want to setup bind9 on my bubba server so it can serve queries from 
the internet side as well as from my LAN behind my Bubba.

> So, in bubba you can resolve domains just fine, right?

Yes because right now I don't have setup bind9 yet.

> Put the results of "dig debian.org" run from one of your LAN clients so
> we can check.

Right now I'm using nameservers of my ISP, so:
dig debian.org

; <<>> DiG 9.7.3 <<>> debian.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12015
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;debian.org.                    IN      A

;; ANSWER SECTION:
debian.org.             3600    IN      A       206.12.19.7
debian.org.             3600    IN      A       128.31.0.51

;; Query time: 32 msec
;; SERVER: 91.102.231.242#53(91.102.231.242)
;; WHEN: Thu Jul  7 20:29:55 2011
;; MSG SIZE  rcvd: 60

> Remember that your LAN computers need to use 192.168.10.1 as the default
> nameserver in "/etc/resolv.conf"

My LAN computers uses resolvconf and network-manager applications to get 
nameservers and setup networking so I must somehow to tell them to use 
192.168.10.1 as the default nameserver.

I think I can tell them this way, on Bubba
mcedit /etc/dhcp/dhcpd.conf
option domain-name-servers 192.168.10.1, 91.102.231.242, 91.102.231.241;

so when one of my LAN computers run dhcp-client it get it automatically 
into it's resolv.conf.

Yes, on my LAN computer I did:
sudo /etc/init.d/resolvconf restart
sudo /etc/init.d/network-manager restart

and get in it's /etc/resolv.conf :
nameserver 192.168.10.1
nameserver 91.102.231.242
nameserver 91.102.231.241
search csanyi-pal.info

Now I did 'dig debian.org' and get:
dig debian.org

; <<>> DiG 9.7.3 <<>> debian.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25810
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 0

;; QUESTION SECTION:
;debian.org.                    IN      A

;; ANSWER SECTION:
debian.org.             3600    IN      A       206.12.19.7
debian.org.             3600    IN      A       128.31.0.51

;; AUTHORITY SECTION:
debian.org.             28800   IN      NS      ns4.debian.com.
debian.org.             28800   IN      NS      ns3.debian.org.
debian.org.             28800   IN      NS      ns1.debian.org.
debian.org.             28800   IN      NS      ns2.debian.org.

;; Query time: 84 msec
;; SERVER: 192.168.10.1#53(192.168.10.1)
;; WHEN: Thu Jul  7 20:41:13 2011
;; MSG SIZE  rcvd: 142

Does it mean that that my LAN computer uses bind9 that run on my Bubba? 
It seems yes for me, right?

Should I perform further setup for my bind9?

-- 
Regards, Paul
<http://csanyi-pal.info>


Reply to: