Dnsmasq and Named in Ubuntu10.10 may conflict

Source: Internet
Author: User
Ubuntu10.10 of my server version. A dnsmasq is installed. You cannot get up. After sudo/etc/init. d/dnsmasqrestart, the system prompts dnsmasq: failedtocreatelisteningsocket: Addressalreadyinuse [fail]. Later, we checked the English article. dnsmasq and other dns resolution services use port 53. Sudonetstat

I use the server version of Ubuntu 10.10.

A dnsmasq is installed. You cannot get up. Sudo/etc/init. d/dnsmasq restart
After
Prompt dnsmasq: failed to create listening socket: Address already in use [fail]

Later I checked the article in English. dnsmasq and other dns resolution services use port 53.

Sudo netstat-anlp | grep-w LISTEN

Check that port 53 is occupied by named. However, I want to use dnsmasq on my own machine and start another dns resolution service program. [LINUX community www.LinuxIDC.com]

You can use port binding. The/etc/dnsmasq. conf file is described in.

# On systems which support it, dnsmasq binds the wildcard address,
# Even when it is listening on only some interfaces. It then discards
# Requests that it shouldn't reply to. This has the advantage
# Working even when interfaces come and go and change address. If you
# Want dnsmasq to really bind only the interfaces it is listening on,
# Uncomment this option. About the only time you may need this is when
# Running another nameserver on the same machine.
Bind-interfaces

This line of bind-interfaces had a well number before, and the well number was saved. Restart dnsmasq. I added a 127.0.0.2 address to the lo port of my local machine. The listening address is bound to 127.0.0.2. He always prompts me that port 127.0.0.1 is occupied.
Listen-address = 127.0.0.2
In this way, the resolv. conf and dhclient. conf are also relatively changed, and then it will be okay.

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.