The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/tools/hv/hv_get_dns_info.sh

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #!/bin/bash
    2 
    3 # This example script parses /etc/resolv.conf to retrive DNS information.
    4 # In the interest of keeping the KVP daemon code free of distro specific
    5 # information; the kvp daemon code invokes this external script to gather
    6 # DNS information.
    7 # This script is expected to print the nameserver values to stdout.
    8 # Each Distro is expected to implement this script in a distro specific
    9 # fashion. For instance on Distros that ship with Network Manager enabled,
   10 # this script can be based on the Network Manager APIs for retrieving DNS
   11 # entries.
   12 
   13 cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'

Cache object: 10b140111b569d7c2abc687662625660


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.