[opensuse] dns and fully qualified domain names
OpenSUSE 11.0 question: I am using samba/winbind (or whatever Yast sets up when you join a Windows AD) to resolve names in the AD. Everywhere (web pages, links, e-mails) the computer name is used without the domain part. So, dns queries fail. Am I missing a setting that can request that a domain name be tacked on to a query? In fact, I need to tack on the AD name (in my case zzz.zzz-group.global.network) for the dns query to work. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
I am using samba/winbind (or whatever Yast sets up when you join a Windows AD) to resolve names in the AD. Everywhere (web pages, links, e-mails) the computer name is used without the domain part. So, dns queries fail. Am I missing a setting that can request that a domain name be tacked on to a query?
In /etc/resolv.conf it "search <domain> ..." in DHCP, it's option domain-name "<domain>"; -- Per Jessen, Zürich (1.8°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 2009-02-11 at 16:56 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
I am using samba/winbind (or whatever Yast sets up when you join a Windows AD) to resolve names in the AD. Everywhere (web pages, links, e-mails) the computer name is used without the domain part. So, dns queries fail. Am I missing a setting that can request that a domain name be tacked on to a query?
In /etc/resolv.conf it "search <domain> ..."
This is the mysterious part. If I get an IP address via dhcp for the machine, this is added to my /etc/resolv.conf file: search zen7.sto.ost.ramse.ramboll-group.global.network But, in fact, the domain is ramse.ramboll-group.global.network So if I look up computerX, it is not resolved. If I look up computerX.ramse.ramboll-group.global.network it is. I cannot look up computerX.zen7.sto.ost.ramse.ramboll-group.global.network. Perhaps since all the other 8000+ people in this company are running XP and probably using WINS, I am the only one with this issue? I modified the /etc/resolv.conf to have search ramse.ramboll-group.global.network instead. And all is well. Time to have a chat with IT. But it has been this way for years! -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
This is the mysterious part. If I get an IP address via dhcp for the machine, this is added to my /etc/resolv.conf file:
search zen7.sto.ost.ramse.ramboll-group.global.network
But, in fact, the domain is ramse.ramboll-group.global.network
That sounds like your DHCP server dishing out the wrong domain then. Take a look at /var/lib/dhcpcd/dhcpcd-ethX.info to see what you get from the DHCP server.
So if I look up computerX, it is not resolved. If I look up computerX.ramse.ramboll-group.global.network it is. I cannot look up computerX.zen7.sto.ost.ramse.ramboll-group.global.network.
Which error do you get from dig?
Perhaps since all the other 8000+ people in this company are running XP and probably using WINS, I am the only one with this issue?
I modified the /etc/resolv.conf to have
search ramse.ramboll-group.global.network
instead. And all is well. Time to have a chat with IT. But it has been this way for years!
Somebody changed something. /Per -- Per Jessen, Zürich (0.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, 2009-02-13 at 13:11 +0100, Per Jessen wrote:
Roger Oberholtzer wrote:
This is the mysterious part. If I get an IP address via dhcp for the machine, this is added to my /etc/resolv.conf file:
search zen7.sto.ost.ramse.ramboll-group.global.network
But, in fact, the domain is ramse.ramboll-group.global.network
That sounds like your DHCP server dishing out the wrong domain then.
Take a look at /var/lib/dhcpcd/dhcpcd-ethX.info to see what you get from the DHCP server.
So if I look up computerX, it is not resolved. If I look up computerX.ramse.ramboll-group.global.network it is. I cannot look up computerX.zen7.sto.ost.ramse.ramboll-group.global.network.
Which error do you get from dig?
I confess, my test of the dns is to use ping and see if it resolves the address. Hey, I program realtime measurement apps, not DNS. dig seems not to be able to resolve the problem machines, no matter how I set search in /etc/resolv.conf. But ping (my other trusty tool here) is effected by the search string. The IT-provided string "zen7.sto.ost.ramse.ramboll-group.global.network" does not work, while my local mod of "ramse.ramboll-group.global.network" does. By work I mean it resolves the address. My browser is also effected. But dig always fails. How odd. The failure looks like this: # dig seramstoefh02 ; <<>> DiG 9.5.0-P2 <<>> seramstoefh02 ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 65477 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;seramstoefh02. IN A ;; Query time: 0 msec ;; SERVER: 10.2.5.26#53(10.2.5.26) ;; WHEN: Fri Feb 13 13:41:29 2009 ;; MSG SIZE rcvd: 31 The server 10.2.5.26 is indeed where it should look. I have even tried using both zen7.sto.ost.ramse.ramboll-group.global.network and ramse.ramboll-group.global.network in the search string, in case the former is a sub-domain that has more local addresses as well as the ones in the later.
Perhaps since all the other 8000+ people in this company are running XP and probably using WINS, I am the only one with this issue?
I modified the /etc/resolv.conf to have
search ramse.ramboll-group.global.network
instead. And all is well. Time to have a chat with IT. But it has been this way for years!
Somebody changed something.
Or, as I suspect, no one is using something I am using. I suspect the company uses wins. I know that the login all XP users is controlled by Novel Client for Windows. But I doubt that implies the name resolution that is being used. Probably wins. I joined the domain just to increase the chance that I could sort out this name issue in a predominantly wins environment. I'm not quite there. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Per Jessen
-
Roger Oberholtzer