LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 03-17-2016, 11:17 AM   #1
kurta
LQ Newbie
 
Registered: Oct 2006
Posts: 22

Rep: Reputation: 0
Centos dns problem


Hi.

I'm using centos 7.2 (CentOS Linux release 7.2.1511 (Core)) on my vps and after an update I got a dns problem.

I'm not able to ping, use yum or other such things since I get

# ping www.vg.no
ping: unknown host www.vg.no

This is my /etc/resolv.conf:
# Generated by NetworkManager
nameserver 8.8.8.8
nameserver 8.8.4.4

This is my /etc/sysconfig/network-scripts/ifcfg-eth0:
DEVICE='eth0'
TYPE=Ethernet
BOOTPROTO=none
ONBOOT='yes'
HWADDR=omitted
IPADDR=omitted
NETMASK=255.255.192.0
GATEWAY=omitted
NM_CONTROLLED='yes'
DNS1=8.8.8.8
DNS2=8.8.4.4

Output from dig www.vg.no:
dig www.vg.no
;; Truncated, retrying in TCP mode.

; <<>> DiG 9.9.4-RedHat-9.9.4-29.el7_2.3 <<>> www.vg.no
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29252
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.vg.no. IN A

;; ANSWER SECTION:
www.vg.no. 210 IN A 195.88.55.16
www.vg.no. 210 IN A 195.88.54.16

;; Query time: 6 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Mar 17 17:15:18 CET 2016
;; MSG SIZE rcvd: 70

What more should I look at?
 
Old 03-17-2016, 01:24 PM   #2
kurta
LQ Newbie
 
Registered: Oct 2006
Posts: 22

Original Poster
Rep: Reputation: 0
I added 127.0.0.1 to /etc/resolv.conf and now it works...

I'm going to try to find what caused it.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in local DNS server Centos 7 gardenair CentOS 6 12-23-2015 06:12 PM
DNS Server Problem in Centos belalju Linux - Server 3 05-06-2010 12:10 PM
Problem with DNS on CentOS cannot service named restart dalvis Linux - Newbie 7 11-25-2009 04:10 PM
problem configuring dns server in centos soumalya Linux - Server 9 11-09-2008 02:02 AM
i have problem during the dns configuration in centos iyub Linux - Newbie 1 10-03-2007 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 04:29 AM.

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
Open Source Consulting | Domain Registration