Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tlug: Question about resolv.conf



>>>>> "Matt" == Matt Gushee <matt@example.com> writes:

    Matt> just a quick question here. Is it okay to have entries for 2
    Matt> different domains in resolv.conf?

I believe that you can only use the domain keyword once, and that
should be used for the domain via which your machine is connected.

However, you can use the search keyword to specify a full search path.
For your application, I don't think there should be a problem.  See
man resolv.conf (or man 5 resolver) for details of how to specify it
and some information about drawbacks (in particular, if you specify

search school.ac.jp, isp.or.jp

and ns.school.ac.jp is down, an abbreviated search for
popserver.isp.or.jp can fail even though ns.isp.or.jp is up, if I
understand the man page right).

The search and domain keywords are mutually exclusive; the domain
keyword may permit recursive searching (ie, with "domain
sk.tsukuba.ac.jp", host "sakura.cc" will be searched for in
"sakura.cc.sk.tsukuba.ac.jp", then found as "sakura.cc.tsukuba.ac.jp"),
the search keyword does not.  The length of the search path is very
restricted, six domains, 256 characters.

Also consider using the LOCALDOMAIN environment variable to specify
the search path in .bashrc or .bash_profile

echo 'Hey, Matt!'
echo "Remember to fix your LOCALDOMAIN variable (or figure out you don't"
echo "need to) when you get back!"
export LOCALDOMAIN=school.ac.jp isp.or.jp

-- 
University of Tsukuba                Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences        Tel/fax: +1 (298) 53-5091
--------------------------------------------------------------
Next Nomikai: 18 September, 19:30 Tengu TokyoEkiMae 03-3275-3691
Next Meeting: 10 October, Tokyo Station Yaesu central gate 12:30
--------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links