]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
res_ninit: Update comment
authorFlorian Weimer <fweimer@redhat.com>
Fri, 19 Feb 2016 16:00:47 +0000 (17:00 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 19 Feb 2016 16:00:47 +0000 (17:00 +0100)
Since commit e66e7419a6f58200eec6941b14e2dcff9875cc6c (Actually make
it possible to user the default name server.), the default is
INADDR_LOOPBACK, not INADDR_ANY.

ChangeLog
resolv/res_init.c

index 8d5406870b6c0e157b0a10e62a95b4be9eed5bcd..fef67b4e62cb37dd38a50b739186316ace459b18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-02-19  Florian Weimer  <fweimer@redhat.com>
+
+       * resolv/res_init.c (res_ninit): Update comment.
+
 2016-02-19  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #19505]
index e0b6a80dc7656c6a7565fd39d18aed74599a108c..128004afb8977dafaf497ddd15564b9421b54434 100644 (file)
@@ -118,21 +118,7 @@ unsigned long long int __res_initstamp attribute_hidden;
 /*
  * Set up default settings.  If the configuration file exist, the values
  * there will have precedence.  Otherwise, the server address is set to
- * INADDR_ANY and the default domain name comes from the gethostname().
- *
- * An interrim version of this code (BIND 4.9, pre-4.4BSD) used 127.0.0.1
- * rather than INADDR_ANY ("0.0.0.0") as the default name server address
- * since it was noted that INADDR_ANY actually meant ``the first interface
- * you "ifconfig"'d at boot time'' and if this was a SLIP or PPP interface,
- * it had to be "up" in order for you to reach your own name server.  It
- * was later decided that since the recommended practice is to always
- * install local static routes through 127.0.0.1 for all your network
- * interfaces, that we could solve this problem without a code change.
- *
- * The configuration file should always be used, since it is the only way
- * to specify a default domain.  If you are running a server on your local
- * machine, you should say "nameserver 0.0.0.0" or "nameserver 127.0.0.1"
- * in the configuration file.
+ * INADDR_LOOPBACK and the default domain name comes from gethostname.
  *
  * Return 0 if completes successfully, -1 on error
  */