/freebsd/sbin/dhclient/ |
H A D | dhclient-script | 204 local tmpres=/var/run/resolv.conf.${interface} 220 if [ -f /etc/resolv.conf.tail ]; then 221 cat /etc/resolv.conf.tail >>$tmpres 232 if cmp -s $tmpres /etc/resolv.conf; then 242 if [ -f /etc/resolv.conf ]; then 243 cat /etc/resolv.conf > /etc/resolv.conf.save 245 cat $tmpres > /etc/resolv.conf 248 chown -RL root:wheel /etc/resolv.conf 249 chmod -RL 644 /etc/resolv.conf 372 if [ -f /etc/resolv.conf.save ]; then [all …]
|
/freebsd/contrib/unbound/contrib/ |
H A D | unbound.init_fedora | 38 …if [ ! -e ${rootdir}/etc/resolv.conf ] || /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv.c… 39 cp -fp /etc/resolv.conf ${rootdir}/etc/resolv.conf 62 for mountfile in /dev/log /dev/urandom /etc/localtime /etc/resolv.conf /var/run/unbound
|
H A D | unbound.init_yocto | 46 if [ -s /etc/resolv.conf ]; then 48 …if [ ! -e ${rootdir}/etc/resolv.conf ] || ! /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv… 49 cp -fp /etc/resolv.conf ${rootdir}/etc/resolv.conf
|
H A D | unbound.init | 46 if [ -s /etc/resolv.conf ]; then 48 …if [ ! -e ${rootdir}/etc/resolv.conf ] || ! /usr/bin/cmp -s /etc/resolv.conf ${rootdir}/etc/resolv… 49 cp -fp /etc/resolv.conf ${rootdir}/etc/resolv.conf
|
/freebsd/contrib/openresolv/ |
H A D | README.md | 4 implementation which manages `/etc/resolv.conf`. 6 `/etc/resolv.conf` is a file that holds the configuration for the local 17 `/etc/resolv.conf`. 19 `resolv.conf` generated for the interface. It then calls all the helper scripts 20 it knows about so it can configure the real `/etc/resolv.conf` and optionally 39 Take the following resolv.conf files which have been generated by a 43 # resolv.conf from bge0 47 # resolv.conf from tap0
|
H A D | libc.in | 89 if [ -f "$SYSCONFDIR"/resolv.conf.d/head ]; then 92 if [ -f "$SYSCONFDIR"/resolv.conf.d/tail ]; then 96 : ${resolv_conf:=/etc/resolv.conf} 99 if [ "${resolv_conf_head-x}" = x ] && [ -f "$SYSCONFDIR"/resolv.conf.head ] 103 if [ "${resolv_conf_tail-x}" = x ] && [ -f "$SYSCONFDIR"/resolv.conf.tail ]
|
H A D | resolvconf.conf | 4 resolv_conf=/etc/resolv.conf
|
/freebsd/usr.sbin/bsdconfig/networking/share/ |
H A D | resolv.subr | 32 f_dprintf "%s: loading includes..." networking/resolv.subr 45 # When updating resolv.conf(5), should we populate the `search' directive with 60 # Returns the domain configured in resolv.conf(5). 79 # Returns the search configured in resolv.conf(5). 103 # Updates the search/domain directives in resolv.conf(5) given a valid fully- 168 # Extrapolate the desired domain search parameter for resolv.conf(5) 187 # Save domain/search information only if different from resolv.conf(5) 193 "to resolv.conf(5)..." 196 # Create a new temporary file to write our resolv.conf(5) 206 # permissions and ownership to match resolv.conf(5) before [all …]
|
/freebsd/usr.sbin/bsdinstall/scripts/ |
H A D | script | 161 if [ ! -f $BSDINSTALL_CHROOT/etc/resolv.conf -a -f /etc/resolv.conf ]; then 162 cp /etc/resolv.conf $BSDINSTALL_CHROOT/etc/resolv.conf
|
H A D | netconfig | 188 done < ${BSDINSTALL_TMPETC}/resolv.conf 259 }' > ${BSDINSTALL_TMPETC}/resolv.conf
|
/freebsd/release/tools/ |
H A D | gce.conf | 21 echo 'search google.internal' > ${DESTDIR}/etc/resolv.conf 22 echo 'nameserver 169.254.169.254' >> ${DESTDIR}/etc/resolv.conf 23 echo 'nameserver 8.8.8.8' >> ${DESTDIR}/etc/resolv.conf 124 # Do everything except deleting resolv.conf since we construct our own 125 # Googlized resolv.conf file in vm_extra_install_base.
|
H A D | vmimage.subr | 121 cp /etc/resolv.conf ${DESTDIR}/etc/resolv.conf 192 rm -f ${DESTDIR}/etc/resolv.conf
|
H A D | vagrant-virtualbox.conf |
|
/freebsd/release/ |
H A D | Makefile | 200 ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf 209 …echo "./etc/resolv.conf type=link uname=root gname=wheel mode=0644 link=/tmp/bsdinstall_etc/resolv… 243 …echo "./etc/resolv.conf type=link uname=root gname=wheel mode=0644 link=/tmp/bsdinstall_etc/resolv… 282 …echo "./etc/resolv.conf type=link uname=root gname=wheel mode=0644 link=/tmp/bsdinstall_etc/resolv…
|
H A D | release.sh | 244 [ -e /etc/resolv.conf -a ! -e ${CHROOTDIR}/etc/resolv.conf ] && \ 245 cp /etc/resolv.conf ${CHROOTDIR}/etc/resolv.conf
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_resolv.sh | 28 atf_test_case resolv 41 atf_add_test_case resolv
|
/freebsd/contrib/hyperv/tools/scripts/ |
H A D | hv_set_ifconfig | 51 sed -i".bak" '/nameserver/d' /etc/resolv.conf 52 echo "nameserver" $DNS >> /etc/resolv.conf
|
H A D | hv_get_dns_info | 11 cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'
|
/freebsd/lib/libc/resolv/ |
H A D | Makefile.inc | 2 .PATH: ${LIBC_SRCTOP}/resolv 8 SYM_MAPS+= ${LIBC_SRCTOP}/resolv/Symbol.map
|
/freebsd/usr.sbin/uhsoctl/ |
H A D | uhsoctl.c | 133 char *resolv; /* Old resolv.conf */ member 466 if (ctx->resolv != NULL) { in set_nameservers() 469 write(fd, ctx->resolv, ctx->resolv_sz); in set_nameservers() 470 free(ctx->resolv); in set_nameservers() 471 ctx->resolv = NULL; in set_nameservers() 494 if (ctx->resolv == NULL) { in set_nameservers() 498 ctx->resolv = malloc(sb.st_size); in set_nameservers() 499 if (ctx->resolv != NULL) { in set_nameservers() 500 n = read(fd, ctx->resolv, sb.st_size); in set_nameservers() 502 free(ctx->resolv); in set_nameservers() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | ipcp.c | 181 if (ipcp->ns.resolv != NULL) { in ipcp_LoadDNS() 182 free(ipcp->ns.resolv); in ipcp_LoadDNS() 183 ipcp->ns.resolv = NULL; in ipcp_LoadDNS() 204 else if ((ipcp->ns.resolv = (char *)malloc(st.st_size + 1)) == NULL) { in ipcp_LoadDNS() 209 } else if ((got = read(fd, ipcp->ns.resolv, st.st_size)) != st.st_size) { in ipcp_LoadDNS() 219 free(ipcp->ns.resolv); in ipcp_LoadDNS() 220 ipcp->ns.resolv = NULL; in ipcp_LoadDNS() 225 ipcp->ns.resolv[st.st_size] = '\0'; in ipcp_LoadDNS() 229 cp = ipcp->ns.resolv; in ipcp_LoadDNS() 339 len = strlen(ipcp->ns.resolv); in ipcp_RestoreDNS() [all …]
|
/freebsd/usr.sbin/bsdconfig/networking/include/ |
H A D | messages.subr | 81 …(e.g. full.example.com). The\ndomain portion of the hostname will be configured in resolv.conf(5)." 88 msg_removing_nameserver="Removing DNS nameserver from resolv.conf(5)..." 89 msg_resolv_conf_changed_while_editing="ERROR! resolv.conf(5) has changed while editing this\nvalue.… 90 …ger_exists="ERROR! The entry you are trying to edit no longer\nexists in resolv.conf(5). Please tr… 95 msg_saving_nameserver="Saving new DNS nameserver to resolv.conf(5)..." 96 msg_saving_nameserver_existing="Editing DNS nameserver in resolv.conf(5)..." 104 …ame (e.g. foo.bar.com).\n The domain portion of the hostname will be configured in resolv.conf(5)."
|
/freebsd/tools/build/cross-build/include/linux/ |
H A D | resolv.h | 37 #include_next <resolv.h>
|
/freebsd/tools/tools/sysbuild/ |
H A D | sysbuild.sh | 595 if [ -f /etc/resolv.conf ] ; then 596 log_it copy resolv.conf 597 cp /etc/resolv.conf ${SBMNT}/etc 598 chflags schg ${SBMNT}/etc/resolv.conf
|
/freebsd/lib/libc/tests/resolv/ |
H A D | Makefile | 3 TESTSDIR= ${TESTSBASE}/lib/libc/resolv
|