Ubuntu cannot resolve Intranet domain names

Source: Internet
Author: User
Working desktop has just been migrated to Ubuntu. It is a strange problem that Ubuntu can resolve the Internet normally, but it cannot resolve the Intranet domain name (the domain name ending with. local ). The following describes how to solve the problem. 1. Since I installed XP on Ubuntu, the Intranet domain name can be resolved through the NAT network link on XP. 2. You can use the dig command in Ubuntu to resolve the domain name to the Intranet domain name. 3. You cannot ping the Intranet domain name. The above three points show that the Intranet DNS resolution is o

Working desktop has just been migrated to Ubuntu. It is a strange problem that Ubuntu can resolve the Internet normally, but it cannot resolve the Intranet domain name (the domain name ending with. local ). The following describes how to solve the problem.

Known phenomena are as follows:

1. Since I installed XP on Ubuntu, the Intranet domain name can be resolved through the NAT network link on XP.

2. Use the dig command in Ubuntu to resolve the domain name to the Intranet.

3. You cannot ping An Intranet domain name.

The above three points show that the Intranet DNS resolution is OK (the XP Virtual Machine can resolve the Intranet ). However, ping Intranet domain names on Ubuntu cannot be resolved, while dig can be resolved normally. Domain name resolution sequence: local hosts file resolution, DNS Server Resolution. It can be determined that the Ubuntu system is parsing domain name related records. We suspect that the domain name resolution may be hijacked by the system service. But I don't know how to get started, so I google the keyword Ubuntu local. Get the article http://www.linuxidc.com/Linux/2011-04/34433p2.htm

It may be related to avahi. What is avahi? Finally, Avahi is the implementation of zeroconf. It can discover zeroconf-based devices and services in a LAN without DNS services. It is the same as mDNS. Disable it unless you have compatible devices or services that use the zeroconf protocol.

Run ps-ef | grep avahi to check the file. This service is available. Use sudo service avahi-daemon stop to stop the service and ping the Intranet domain name.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.