DNS issue

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read this

DNS issue

Postby zppnduster on Wed Aug 15, 2012 2:50 pm

Hey,

I've recently installed Linux Mint 13 (XFCE on my netbook and Cinnamon on my PC) and I like it so far. The only thing that disturbs me is the weird DNS settings. For example: I've got a network attached storage and whenever I try to do a nslookup on it I get this message:
Code: Select all
Server:      127.0.0.1
Address:   127.0.0.1#53

** server can't find nas01: NXDOMAIN


'No problem' I thought and tried to open /etc/resolv.conf. But it is missing. So I took a look at /etc/resolvconf/resolv.conf.d/head.
But in there I can only find this:
Code: Select all
# 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


So how the hell can I tell Linux Mint to use the router for DNS resolution. By the way: Internet name resolution is working.

Thanks in advance.
zppnduster
Level 1
Level 1
 
Posts: 2
Joined: Wed Aug 15, 2012 2:35 pm

Linux Mint is funded by ads and donations.
 

Re: DNS issue

Postby karlchen on Wed Aug 15, 2012 5:26 pm

Hello, zppnduster.
By the way: Internet name resolution is working.
Then your system is using the router's DNS feature already. Yet, this is camouflaged by the fact that it is not queried directly, but by the dnsmasq service.

Ubuntu 12.04 / Linux Mint 13 have brought along quite a few changes affecting how network is configured and handled internally.
You might like to look for articles explaining how dnsmasq works.
You might like to look for articles explaining how resolver works.

About the missing file /etc/resolv.conf:
With root privileges create a symbolic link /etc/resolv.conf pointing to /var/run/resolvconf/resolv.conf. Check the manpages of resolver for more details, please.

Kind regards,
Karl
Last edited by karlchen on Thu Aug 16, 2012 4:39 am, edited 1 time in total.
Enlightened by Lucid Lynx, enchanted by Maya Mint, productive on Precise Pangolin's Minty sister
User avatar
karlchen
Level 5
Level 5
 
Posts: 855
Joined: Sat Dec 31, 2011 7:21 am

Re: DNS issue

Postby zppnduster on Thu Aug 16, 2012 2:44 am

Thank you for your response.
I see. So I am running a "little own dns server" on my computer now. But then it seems that the router and my dnsmasq are not exchanging infos about the dns records properly.

karlchen wrote:About the missing file /etc/resolv.conf:
With root privileges create a symbolic link /etc/resolv.conf pointing to /var/run/resolver/resolv.conf. Check the manpages of resolver for more details, please.

Unfortunately the /var/run/resolver directory does not exist. /var/run/resolvconf does exist but its empty. What do I do now?

Man I already miss the old version. I just want to write nameserver=*ip* in some file and work as usual. :?
zppnduster
Level 1
Level 1
 
Posts: 2
Joined: Wed Aug 15, 2012 2:35 pm

Re: DNS issue

Postby karlchen on Thu Aug 16, 2012 4:39 am

Hi, David.

Oops. Should have looked up on my own machine, you are right the folder is /var/run/resolvconf. So the link /etc/resolv.conf points to /var/run/resolvconf/resolv.conf. - It does. Have just verified it on my machine.

I just want to write nameserver=*ip* in some file and work as usual

With the correct /etc/resolv.conf link pointing to the correct target it should be possible to add extra nameservers. I guess they might have to go to the tail part of /etc/resolvconf/resolv.conf.d/. No time to read the manpages and check myself at this point in time, I am in the office.

Kind regards,
Karl
Enlightened by Lucid Lynx, enchanted by Maya Mint, productive on Precise Pangolin's Minty sister
User avatar
karlchen
Level 5
Level 5
 
Posts: 855
Joined: Sat Dec 31, 2011 7:21 am


Return to Other networking topics

Who is online

Users browsing this forum: No registered users and 5 guests