Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand Fedora 7 configuring DNS Technology

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to understand Fedora 7 configuration DNS technology, I believe many inexperienced people are helpless about this, this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.

After a long time learning Fedora 7 configuration DNS, Fedora 7 configuration DNS can improve the use of more convenient performance. Below is a summary of XX. Configuring DNS Services in Fedora 7 Many friends learn to configure DNS servers on Linux by referring to information on platforms prior to RHEL4 or Fedora Core5. A lot of things have changed on Fedora 7 configuration DNS.

software list

bind-libs-9.4.0-6.fc7

bind-chroot-9.4.0-6.fc7

bind-utils-9.4.0-6.fc7

bind-9.4.0-6.fc7

caching-nameserver-9.4.0-6.fc7

If you have upgraded your system, the software version will be slightly different. Bind-chroot can increase the security of DNS servers and can work without installation. Fedora 7 bind software and the original structure is different, there is no previous/etc/named.conf and/var/named/chroot/etc/named.conf(the former is the symbolic link of the latter), resulting in many friends do not know how to configure the Fedora 7 DNS server, after a simple study, the author concluded the DNS server configuration method.

Executed in/var/named/chroot/etc

cat named.caching-nameserver.conf named.rfc1912.zones > named.conf

rm named.caching-nameserver.conf named.rfc1912.zones > named.conf

[root@maluyao ~]ln -s /var/named/chroot/etc/named.conf /etc/named.conf

The above steps merge named.caching-nameserver.conf named.rfc1912.zones into a file (/var/named/chrrot/etc/named.conf) and delete it. When actually operating, *** do not delete, but move these two files to another location for backup. And for convenience, a symbolic link is made under/etc.

Modify the named.conf file to change the

view localhost_resolver {

match-clients { localhost; };

match-destinations { localhost; };

recurrence yes; and include "/etc/named.rfc1912.zones";

Line comment or delete.

In Fedora 7 configuration DNS, port 53 is only open on loopback addresses 127.0.0.1 and::1(IPV6 loopback address) by default. If you want port 53 to be open on all addresses, you should modify the named.conf

listen-on port 53 { 127.0.0.1; };

listen-on-v6 port 53 { ::1; };

listen-on port 53 { any; };

listen-on-v6 port 53 { any; };

Fedora 7 DNS server configuration default only allows the client 127.0.0.1 (i.e. local) to initiate queries, generally we need to allow everyone to query, this needs to modify the name.conf:

allow-query { localhost; allow-query { any; };

After restarting BIND, use the following command: [root@maluyao ~]#netstat -nlu| grep 53

[root@maluyao ~]#netstat -A inet6 |grep 53

You can see that port 53 is listening on all addresses. Fedora 7 configures the DNS server to open port 53 for both tcp and udp. The above command only looks at udp. If you don't want to listen on port 53 at ipv6 address, comment the listen-on-v6 line. The bind service is now configured similarly to RHEL4 or Fedora Core 5.

The default settings in Fedora 7 configuration DNS have their own reasons, and we want readers to know what those things mean when we comment or delete them. But this article will not be introduced.

After reading the above, do you know how to understand Fedora 7 DNS configuration technology? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report