Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 75724 - /etc/resolv.conf may not have search or domain configured.
Summary: /etc/resolv.conf may not have search or domain configured.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-26 10:56 UTC by Bjarke Istrup Pedersen (RETIRED)
Modified: 2005-01-02 22:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2004-12-26 10:56:10 UTC
This one does not work (the page exist)

jupiter ~ # wget http://pciids.sourceforge.net
--18:53:00--  http://pciids.sourceforge.net/
           => `index.html'
Resolving pciids.sourceforge.net... failed: Name or service not known.

This one however does work

jupiter ~ # wget http://www.gentoo.org
--18:52:34--  http://www.gentoo.org/
           => `index.html'
Resolving www.gentoo.org... 66.45.74.45, 199.246.73.203, 65.19.163.231
Connecting to www.gentoo.org[66.45.74.45]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16,233 [text/html]

100%[====================================>] 16,233        38.87K/s

18:52:34 (38.77 KB/s) - `index.html' saved [16233/16233]

I have the same problem with rsync.

here is my /etc/resolv.conf:

jupiter ~ # cat /etc/resolv.conf
nameserver 192.168.3.1
search gurlinet.dk
domain gurlinet.dk

Reproducible: Always
Steps to Reproduce:
1. wget http://pciids.sourceforge.net
Actual Results:  
This fails for some reason, but works on another of my computers.

Expected Results:  
It should be working.
Comment 1 Stian Skjelstad 2004-12-26 20:52:39 UTC
Does the problem still persist? Could be sourceforge nameserver temporary being down, or that your router has problems with either udp or tcp dns name-queries.
Comment 2 SpanKY gentoo-dev 2004-12-26 22:23:44 UTC
your network is broken, either way not an issue with Gentoo

$ dig +short pciids.sourceforge.net
projects.sourceforge.net.
66.35.250.209
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-01-02 21:01:54 UTC
Got a little news on this one.
If I remove search and domain from /etc/resolv.conf , it works fine, but now I cannot use the short names locally.
Any ideas of why this happends? (It apparently only happends on the machine that acts like DNS server for the rest of the network)
Comment 4 SpanKY gentoo-dev 2005-01-02 21:20:55 UTC
your description is awfully vague, you need to provide more info about the machine and network setups
Comment 5 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-01-02 21:26:41 UTC
I have set the dnsdomainname to gurlinet.dk in /etc/conf.d/domainname
in /etc/resolv.conf I'd like to be able to set search and domain to gurlinet.dk , so I on the machine can ping and connect to the local machines just by using their name and not the entire dns name (their full internal dns is name.gurlinet.dk (etc. mercury.gurlinet.dk)).
if I set eighter "search gurlinet.dk" or "domain gurlinet.dk" in /etc/resolv, it stops working, and acts like I descriped earlier.
The machine is hosting the domain, and resolv.conf is configured to use 127.0.0.1 as nameserver.
Comment 6 SpanKY gentoo-dev 2005-01-02 21:54:46 UTC
search and domain are mutually exclusive, read `man resolv.conf`
Comment 7 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-01-02 21:58:00 UTC
Using one of them only doesn't help, it still does not work when set.
Comment 8 SpanKY gentoo-dev 2005-01-02 22:08:33 UTC
so load up ethereal and packet sniff the dns traffic