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

DNS Separation and Resolution configuration in linux redhat6.5

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

Share

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

DNS separation resolution means that the same domain name of the internal and external network is resolved into different IP addresses.

It mainly refers to providing different domain name resolution records according to different clients.

In order to give users a better experience and faster parsing speed, some e-commerce websites in the real network parse users from different operators to the corresponding servers, which greatly improves the access speed.

This is configured directly with the built DNS server.

There is a detailed tutorial in the article before the construction of DNS: https://blog.51cto.com/13630803/2114574

1: add dual network card settings > add network adapter > OK > finish

2:ifconfig / / View the Nic information and copy the MAC address of eth2

3:cd / etc/sysconfig/network-scripts/ to this directory cp ifcfg-eth0 ifcfg-eth2 / / copy ifcfg-eth0 named ifcfg-eth2 vim ifcfg-eth2 / / Edit ifcfg-eth2 DEVICE=eth2 / / change to eth2 HWADDR=00:0C:29:43:D2:CE / / paste the copied MAC address TYPE=Ethernet ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=12.0.0.1 / / IP changed to 12.0.0.1 NETMASK=255.255.255.0

4:vim ifcfg-eth0 / / Edit ifcfg-eth0DEVICE=eth0 DEVICE=eth0 HWADDR=00:0C:29:43:D2:C4 TYPE=Ethernet UUID=3a497708-5437-4e94-9e57-5e343f826e28 ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=static IPADDR=192.168.100.1 NETMASK=255.255.255.0

5:service network restart / / restart the network

6: edit the configuration file named.conf listen-on port 53 {any;}; set to any to listen on all addresses and ports allow-query {any;}; set to any to allow all network segments to use DNS

7: find line 37 4dd to delete and paste into the named.rfc1912.zones file later

8: edit / etc/named.rfc1912.zones configuration forward parsing and reverse parsing of intranet configuration forward parsing of extranet

9: open the directory / var/named copy named.localhost named benet.com.zone.lan copy named.localhost name benet.com.zone.wan edit benet.com.zone.lan

10: edit benet.com.zone.wan

11: edit resolv.conf to add DNS server address

12: enable named service

13: test with 2 win7 to set the address of win7 12.0.0.10 and DNS server 12.0.0.1 to test the DNS resolution of the public network

14: set the address of another win7 192.168.100.77 DNS server 192.168.100.1 test the resolution of the private network

DNS separation and resolution succeeded

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