LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2016, 04:23 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
DNS resolves URL in two different ways?


Hey all, I'm trying to get a program running on Ubuntu 14.04 LTS to update and it's not working. Tech support said that the problem is that my Ubuntu machine isn't connected to the internet. I said yes it is, they said no it's not. They sent me the URL that I need to connect to in order to get the updates, and I was able to ping it, but it resolved as something else. I ran nslookup on the URL and it resolved correctly. I double-checked Network Manager and the DNS servers are correct. I tried running ping and nslookup on my Windows 10 workstation and both resolve correctly. I took a look at my resolv.conf file and it's a little different from what I thought it should be:

Quote:
root@NamedOne:/# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
search domain.com
root@NamedOne:/#
Shouldn't my actual DNS servers be listed here? Any ideas on what's going on?

Thanks,

Joe B
 
Old 07-01-2016, 05:12 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
How do you configure network, with network manager?

edit, lol yes sorry

Check carefully settings, is it dynamic (DHCP) or static IP?
Tried other dns servers? opendns, google...

For the generated resolv.conf, have a look at ' man 8 resolvconf ' as suggested, if you're curious

Last edited by keefaz; 07-01-2016 at 05:17 PM.
 
Old 07-01-2016, 06:50 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Router?
I use Gurgle's DNS and L3 dns: eg:
8.8.8.8
4.4.2.2

fix you right up.

Sorry, One simply does not: Ping urls.

Last edited by Habitual; 07-01-2016 at 06:52 PM.
 
Old 07-01-2016, 07:20 PM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,592

Rep: Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114Reputation: 2114
"nameserver 127.0.0.1" means you are using a local caching nameserver, and in Ubuntu that's going to be dnsmasq. I can't figure out how the heck you're supposed to look at log files in Ubuntu 14 (there's no /var/log/messages and no journalctl command), but somewhere in there you should be able to find out to what upstream DNS server dnsmasq is forwarding requests. Why that would be wrong I have no idea, but that's a place to start looking. It should be the DNS server that that gave you your IP address in the response to your local dhclient's DHCP request.
 
Old 07-02-2016, 11:17 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
I'm not sure if this is of use to you, but I'm using OpenDNS' DNS nameservers on Linux Mint. I did it as follows:

Code:
sudo kate /etc/resolvconf/resolv.conf.d/head
to add (ignore the warning in the file):

nameserver 208.67.222.222
nameserver 208.67.220.220

Code:
sudo resolvconf -u
This populates /etc/resolv.conf with the above DNS nameservers.

Might be worth a go as a remedial measure.
 
Old 07-02-2016, 04:45 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
<cough_cough>
Code:
sudo gksudo kate /etc/resolvconf/resolv.conf.d/head
 
Old 07-02-2016, 06:14 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924Reputation: 2924
Quote:
Originally Posted by Habitual View Post
<cough_cough>
Code:
sudo gksudo kate /etc/resolvconf/resolv.conf.d/head
That's a nasty cough you have there. ;-)

Or kdesudo. But, strangely, sudo does work in this case on my Linux Mint 17.3 KDE system. I have no problem using it to open GUI applications. I haven't questioned why, maybe I should...
 
Old 07-05-2016, 03:58 PM   #8
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Well, I was just checking my other Linux servers and they are ALL resolving the vendor's site incorrectly. This is very frustrating because they are all using the same DNS servers as my Windows machines. And my Windows machines are all resolving the address correctly. I guess this is more than just an Ubuntu issue.

Thanks for all the help,

Joe B
 
Old 07-05-2016, 04:07 PM   #9
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Ok, I have to get this working so I just put their address in my hosts file and now it's working fine. I would REALLY like to know why this isn't working as it should...

Thanks,

Joe B
 
  


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
[SOLVED] DNS resolves only on server loveulinux Linux - Newbie 16 10-29-2011 04:37 AM
DNS doesn't resolves when restart server shahz Red Hat 3 11-16-2007 10:18 AM
Ping resolves DNS but other apps don't? jago25_98 Linux - Networking 12 02-25-2007 04:39 PM
Virtual Hosts, DNS resolves, PLEASE HELP!! parasbshah Linux - Software 14 10-17-2005 02:38 PM
Any name resolves to. A? CNAME? DNS Q dlublink Linux - Networking 3 01-11-2005 10:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:21 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
Open Source Consulting | Domain Registration