Current location - Education and Training Encyclopedia - Graduation thesis - Linux building DNS server DNSlinux building
Linux building DNS server DNSlinux building
How does linuxCentOS permanently change DNS configuration?

Method for permanently modifying DNS address:

1. Configure the ip address file/etc/sysconfig/network-scripts/ifcfg-eth0 and add a line of dns 1 = 8.8.8 # to manually add the dns address; The address of DNS configuration file /etc/resolv.conf will automatically match the address added manually; It will not be cleared after restarting the network card;

2. Manually add the dns address DNS configuration file/etc/resolv.confnameserver192.168.17 Configure the ip address file/etc/sysconfig/network-scripts/ifcfg-eth0. Do not disturb the file after adding PEERDNS=no#. In DHCP environment, after manually adding dns address in /etc/resolv.conf, restarting the network card will automatically clear it. Dns addresses added to/etc/sysconfig/network-scripts/ifcfg-eth0 will not be cleared. In the static IP configuration environment, /etc/resolv.conf manually adds the dns address, which will not be cleared after restarting.

How to view the mount directory when installing dns under linux?

The command to view the mount partition of the directory under linux is as follows:

1, use df-h command 2, the first column is the disk partition, the last column is the mount directory, and there is partition utilization in the middle.

How to specify the address of DNS server in UbuntuLinux?

Configure ubuntu's dns server information, put it in /etc/resolv.conf, add the dns server address, such as 202.12.125.53, and then add the name server 202. 1 125.53 to the above file.

Linux common network configuration file /etc/resolv.conf configures DNS client?

The file /etc/resolv.conf configures the DNS client, which contains the domain name search order of the host and the address of the DNS server. Each line should contain a keyword and one or more parameters, separated by spaces. The following is an example file: name server202.103.44.150name server8.8.8 legal parameters for searching Huawei-3com.com and their meanings are as follows: nameserver represents the IP address of DNS server, and there may be multiple lines of nameserver, each with an IP address. Queries will be made in the order of name servers in this document, and only when the first name server does not respond will the domain names of the following name servers be queried. Domain claims host. Many programs use it, such as mail system; It is also used when DNS queries are made to hosts without domain names. If there is no domain name, the first dot (.) will be deleted by using the host name. Several parameters for searching it indicate the order of domain name query. When a host without a domain name is to be queried, the host will be searched separately in the domain declared by search. Unable to save domain and search * * *; If both exist, the latter will be used. Sortlist allows you to sort domain name results in a specific way. Its parameters are network/mask pairs, allowing any order. The default /etc/resolv.conf file is not provided in RedHat, and its contents are dynamically created according to the options given during installation.

How to add a Linux system to a domain?

1. Configure DNS # vi/etc/resolv.conf nameserver192.168.2.30 nameserver192.168.2.32 # vi/etc/host. Nslookup192.168.2.32 dnslookup # nettimeset192.1662. samba first ensure that samba package is installed in Linux system, and use the following command to check the basic library support of samba package, which is usually installed at RPM. # smbd-b | grepldaphase _ LDAP _ HHAVE _ LDAP have _ LDAP _ domain 2 host list ..

. # smbd-b | grepKRBHAVE _ KRB5 _ HHAVE _ ADDRTYPE _ IN _ KRB5 _ address have _ KRB5...# smbd-b | grepADSWITH _ ADS with _ ADS # smbd-b | Grepwinbindwith _ winbindwith _ winbind3.krb5 configuration configuration editing /etc/krb5.conf, after the configuration is completed, execute # kinitadministrator @ hxbank.com4.samba configuration editing configuration /etc/samba/smb.conf, and restart samba service. #servicesambarestart#netadsjoin-Uadministrator@HXBANK.COM joined the domain. At this time, you need to enter the domain administrator password 5. Winbind Configuration Editor/etc/nsswitch.conf, and change passwd and group to (files depends on whether NIS is configured on your linux system, and if NIS is configured, it is Compat). Passwd: fileswinbind group: fileswinbind save and (restart) start samba service. (Heavy) Start winbind. Use wbinfo-u to retrieve users, and use wbinfo-g to retrieve user groups to test whether winbind is normal.