LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-06-2014, 09:49 AM   #1
dew90
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Rep: Reputation: Disabled
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?
 
Old 10-06-2014, 12:09 PM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
Has your client got suitable /etc/nsswitch.conf and /etc/resolv.conf ?
 
Old 10-06-2014, 01:53 PM   #3
dew90
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linosaurusroot View Post
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?
 
Old 10-07-2014, 03:36 AM   #4
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 10-07-2014, 06:10 AM   #5
dew90
LQ Newbie
 
Registered: Oct 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linosaurusroot View Post
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
 
Old 10-11-2014, 12:43 PM   #6
jennyj
LQ Newbie
 
Registered: Oct 2014
Distribution: debian wheezy
Posts: 26

Rep: Reputation: Disabled
Unhappy

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/

Last edited by jennyj; 10-13-2014 at 04:36 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 7 bind9 problem vitronix Linux - Server 9 03-08-2014 01:56 AM
Dns problem with bind9 caksin Linux - Server 23 03-19-2010 10:00 AM
Problem with Bind9 rytec Linux - Server 7 09-02-2009 04:26 PM
UBUNTU bind9 problem xokaido Linux - Server 17 07-28-2008 02:31 AM
Bind9 problem WiWa Linux - Networking 3 06-06-2004 05:27 AM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration