Solaris Network Management: Settings of DNS Clients

xiaoxiao2021-03-06  20

/etc/resolv.conf file record DNS server address and domain keyword: domainName Nameserver # more /etc/resolv.conf nameserver 172.16.255.3 DomainName Sunrise.com.cn /etc/nsswitch.conf file Record the search order of the host name Waiting for information # more /etc/nsswitch.dns: # # an esample file what could be copied over to /etc/nswitch.conf; it Uses # DNS for hosts lookups, Otherwise it does not use any other naming service # # hosts: and services: in this file are used only if the # / etc / netconfig file has a - for nametoaddr_libs of inet transports passwd:.. files group: files # You must also set up the / etc /Resolv.conf file for DNS Name # Server Lookup. See resolv.conf (4). Hosts: Files DNS ipnodes: FILES ... The HOSTS record of this file is configured to hosts: files dns nslookup command to query DNS server for use Verify the client settings for download DNS database # nslookup default server: ns.zjhzptt.net.cn Address: 202.96.96.68> www.sun.com server: ns.zjhzptt.net.cn address: 202.96.96.68 Non-Authoritative Answer : Name: www.sun.com address: 192.18.97.241> NSLOOKU p Defaultly as the local server. The name and address of the target server are included in the response. > Is a prompt, which means you can start sending a name service inquiry or configuration.

转载请注明原文地址:https://www.9cbs.com/read-40223.html

New Post(0)