LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2012, 12:38 PM   #1
llpapis
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
dns problem


[root@localhost ~]# cat /etc/resolv.conf
namesever 192.168.10.126
[root@localhost ~]# dig google.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> google.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost ~]# dig google.com @192.168.10.126

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> google.com @192.168.10.126
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30502
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 169 IN A 74.125.113.103
google.com. 169 IN A 74.125.113.104
google.com. 169 IN A 74.125.113.105
google.com. 169 IN A 74.125.113.106
google.com. 169 IN A 74.125.113.147
google.com. 169 IN A 74.125.113.99

;; Query time: 5 msec
;; SERVER: 192.168.10.126#53(192.168.10.126)
;; WHEN: Mon Feb 13 10:26:09 2012
;; MSG SIZE rcvd: 124

i can t ping for exemple google.com and have a response
etc/resolv.conf correctly configured
 
Old 02-13-2012, 02:11 PM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
That is weird, but
- what is your distro (RHEL ?)

My /etc/resolv.conf is:
Code:
cat /etc/resolv.conf 
nameserver 127.0.0.1
nameserver 192.168.0.7
So maybe you're missing 127.0.0.1 to make it working ?

- what is
Code:
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0
#BOOTPROTO=dhcp
HWADDR=00:xx:xx:xx:1x:xx
ONBOOT=yes
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.7
NETMASK=255.255.255.0
NETWORK=192.168.0.0
TYPE=Ethernet
- what is your
Code:
cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
# HOSTNAME=localhost.localdomain
HOSTNAME=hostname.domain.com
GATEWAY=192.168.0.254
- what is
Code:
cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       hostname hostname.domain.com localhost
::1             localhost6.localdomain6 localhost6
192.168.0.7     hostname hostname.domain.com
- what does your NAMED service (DNS) show in networking
Code:
netstat -tapln | grep 53
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 192.168.0.7:53              0.0.0.0:*                   LISTEN      -                   
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN      -                   
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN      -

Last edited by lithos; 02-13-2012 at 02:14 PM.
 
Old 02-13-2012, 04:43 PM   #3
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 8
Quote:
Originally Posted by llpapis View Post
[root@localhost ~]# cat /etc/resolv.conf
namesever 192.168.10.126
[root@localhost ~]# dig google.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> google.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@localhost ~]# dig google.com @192.168.10.126

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> google.com @192.168.10.126
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30502
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 169 IN A 74.125.113.103
google.com. 169 IN A 74.125.113.104
google.com. 169 IN A 74.125.113.105
google.com. 169 IN A 74.125.113.106
google.com. 169 IN A 74.125.113.147
google.com. 169 IN A 74.125.113.99

;; Query time: 5 msec
;; SERVER: 192.168.10.126#53(192.168.10.126)
;; WHEN: Mon Feb 13 10:26:09 2012
;; MSG SIZE rcvd: 124

i can t ping for exemple google.com and have a response
etc/resolv.conf correctly configured
are you running your linux on vmware?
could you tell us a little bit more about your system
BTW use 4.2.2.4 as dns server.see what would happen.
 
  


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
DNS Setup Problem or Godaddy Problem videoman Linux - Networking 1 02-05-2009 04:38 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
Seems like a DNS problem? godsdog Debian 2 03-15-2005 02:28 PM
DNS problem - please help! jhecht Linux - Networking 0 06-27-2004 06:08 PM
dns problem socket9001 Linux - Networking 1 06-12-2004 07:52 AM


All times are GMT -5. The time now is 06:18 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