order of lines in resolv.conf

Hi,

we experienced some problems resolving hosts after I added a line with domain definition. We found that the order of lines with “domain” and “search” entries is relevant: if domain follows search, the list of domainnames for searching will not be followed. It only works if search follows domain definition.

Anyone here who ca say if this is a bug or a feature?!

Ah, btw: SLES 11 SP1

Regards,
Jan

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

  • From the resolv.conf manpage:

The domain and search keywords are mutually exclusive. If more than one
instance of these keywords is present, the last instance wins.

(note, taken from my OpenSUSE 12.1 system)

So… don’t do that.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP6dpBAAoJEF+XTK08PnB5r48P/1RMDXN93Jwr/rKXVdYab6b5
ACbDnV6i/6NcLyFMf9DQ/r8AH7ZisCihDmC/iQ4RhNofykKD36m8fcl3kSLf6aSX
cZIHKDBjDLQbnFmgtC7km4k01otTV6lViaWe3q+Yf41Vuwy97YGvf4ZlH64xeZe+
Do0Jlp51LmwRI0LuEuOzR8iuxLRh3jIUL+jKHTHrENg4X6xJLuXN4KbdJOfBJ197
luW+w1aAitd9Cs7uVCWCuXgAY/YZpGNfItHFr9XtKg3YkTaFtxh/YabAB1WCnM3I
dfBL/VgpJOOrweGE9BI6FSt5YrC/8qcr/ninTYmgwcqMVWeRdoCJxu5i3smerS+B
WZTw0bTdPwU8TgOVCC0IZpyUmL9Vo0R8/Pxy82ihg+7nX+6+xQ7sMDZHwkDR7AZc
qB/e3q7zbKLlfQOcSsONoei90/JF6Xno780StRsPGF9hMWJ4WNqsQMwtijNuHAz6
N/8OEFrWZp+i9zqeCHO2IdaC3tN/QshYeQbuz8jQJR1Grtq3TjgB9DPtA05XqXzq
/URvxgPaJS9yQVxjtDyowfD80vK7nqri4xH1LvsYFQ0pzdSvPTbt2hbsD5Gnmo0D
XvUD2sDLjpfaC25d9aZiLPJ0qMQkxpZfRt4h77jOyOGhrRJfdVojxoptYFo8Q+Ic
mYtoF/10Z8t1KChLCs6H
=ReHv
-----END PGP SIGNATURE-----

On 06/26/2012 09:04 AM, dreyerja wrote:[color=blue]

Hi,

we experienced some problems resolving hosts after I added a line with
domain definition. We found that the order of lines with “domain” and
“search” entries is relevant: if domain follows search, the list of
domainnames for searching will not be followed. It only works if search
follows domain definition.[/color]

Technically, there can only be one, either domain or search… some distros and
some OS’s get this wrong.

… with other words: RTFM
sorry for spamming this forum. Thanks for pointing to the right direction!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No worries; this was probably a learning experience for all three of
us… certainly for both you and me.

Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJP6xflAAoJEF+XTK08PnB5h2AP/jW5yo+isLoRIlL9KAeI1i2m
QMXzIccNZULF6kLAiI9DtBhWL4EonDUyXUMZu60Uq9dy4sH+8ar1jHoO3CINsAzI
Fuz8Ck9FtUSUTAxCRgcf3266Ca2dFdMJGwPyduT1ydUT1tfCyFBZH/QpGSFxrc0L
U/yJiP14Zg+yHmAr1HN85q1gjv/VoDYz1e8OrgNVdIcuR7iOIUowSSjr10z5VDpn
rmrEAdLh1xxhhew0lnHDBfMUkYqsVzmwyJO0I/5xOLWN+NHCudi5pdsmVABoMjtT
KUEzUAuTQCCQNuWicBGHlTAmaCSCDIcPe0Cr3T7M4xPZeVnUfzIk+MZkGVRlUhwm
IFTSRIdsxDiEQZP9lTUQtLnF//PhH9mLWYgL0KxMFNrAnyCo3jkEz4tUg08cYRgW
T12hhSIQVXYXqUduAuTyesa+RiPWinPaYObos5LeviNIv30E5fcXIBLYX/HbV3Am
kM4BXQRogYMeAINKhkUAQm0NtS6oWaQ6wD+tKUvBAAMQnt8tq5vWpE6EKpLotEUD
hIW6XQgxN6F0zKwp8fYZ68PyMNB2nnxvAz+LeFvmmIkXJivzUnpwMr/cWDMHF4Uk
bEQHB95yeiWYntnvwE3A5m/j0POQ2CtbLgjyUWwLxoXQlklSBAbKG/Gj36oFW9jJ
szvDBmtyFkhw89c/4JfM
=Rsgf
-----END PGP SIGNATURE-----