aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>1998-04-05 19:48:33 +0000
committerErik Troan <ewt@redhat.com>1998-04-05 19:48:33 +0000
commita61919722d8162b6154fabeaad6a9a43ccec2277 (patch)
tree75608694aa88799957eac8baff06a41132cddba5 /sysconfig/network-scripts/network-functions
parentf9d8ca8195162004f1edda812e16121a8089f690 (diff)
downloadinitscripts-a61919722d8162b6154fabeaad6a9a43ccec2277.tar
initscripts-a61919722d8162b6154fabeaad6a9a43ccec2277.tar.gz
initscripts-a61919722d8162b6154fabeaad6a9a43ccec2277.tar.bz2
initscripts-a61919722d8162b6154fabeaad6a9a43ccec2277.tar.xz
initscripts-a61919722d8162b6154fabeaad6a9a43ccec2277.zip
moved adding /etc/resolv.conf search path to normal reverse name lookupr3-52
handling
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions
index 9b108bb7..db1d9f8c 100644
--- a/sysconfig/network-scripts/network-functions
+++ b/sysconfig/network-scripts/network-functions
@@ -43,4 +43,8 @@ set_hostname()
{
echo "$1" > /etc/HOSTNAME
hostname $1
+ if ! grep search /etc/resolv.conf; then
+ domain=`echo $1 | sed 's/^[^\.]*\.//'`
+ echo "search $domain" >> /etc/resolv.conf
+ fi
}