LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bind9 problem (https://www.linuxquestions.org/questions/linux-newbie-8/bind9-problem-4175521193/)

dew90 10-06-2014 09:49 AM

bind9 problem
 
I can ping the server ip from the client, but i cant reach the domain name with the browser.
Both nslookup 192.168.2.1 and server.xyz.local works from the server.

Whats the problem?

linosaurusroot 10-06-2014 12:09 PM

Has your client got suitable /etc/nsswitch.conf and /etc/resolv.conf ?

dew90 10-06-2014 01:53 PM

Quote:

Originally Posted by linosaurusroot (Post 5249755)
Has your client got suitable /etc/nsswitch.conf and /etc/resolv.conf ?

oh god, thanks I found some information on google about nsswitch and it works now! Added hosts files nis dns

can you tell me what does this do?

linosaurusroot 10-07-2014 03:36 AM

nsswitch.conf tells s/w where to get data from on subjects like user accounts and host/IPs. Now that you've included dns in the hosts line ping and suchlike know to use DNS to turn hostnames into IPs.

dew90 10-07-2014 06:10 AM

Quote:

Originally Posted by linosaurusroot (Post 5250088)
nsswitch.conf tells s/w where to get data from on subjects like user accounts and host/IPs. Now that you've included dns in the hosts line ping and suchlike know to use DNS to turn hostnames into IPs.

Thank you sir

jennyj 10-11-2014 12:43 PM

Quote:

I can ping the server ip from the client, but i cant reach the domain name with the browser
Hi there

I have a very similar issue with DNS in that pinging URLs is unsuccessful but IPs are fine (eg. ping 8.8.8.8) but my /etc/nsswitch.conf seems fine:

Code:

passwd:        compat
group:          compat
shadow:        compat
hosts:          files dns
networks:      files
protocols:      db files
services:      db files
ethers:        db files
rpc:            db files
netgroup:      nis

I decided to move my post and start a new thread in the 'Linux - Networking' forum: https://www.linuxquestions.org/quest...em-4175521934/


All times are GMT -5. The time now is 12:50 PM.