Home arrow BrainDump arrow Page 4 - Configuring a Linux Wireless Access Point

4.6 Adding Mail Servers to dnsmasq - BrainDump

In this second part of a five-part series on building a Linux wireless access point, you'll learn how to set up name services, set static IP addresses, and more. This article is excerpted from chapter four of the Linux Networking Cookbook, written by Carla Schroder (O'Reilly; ISBN: 0596102488). Copyright © 2008 O'Reilly Media, Inc. All rights reserved. Used with permission from the publisher. Available from booksellers or direct from O'Reilly Media.

  1. Configuring a Linux Wireless Access Point
  2. 4.4 Setting Static IP Addresses from the DHCP Server
  3. 4.5 Configuring Linux and Windows Static DHCP Clients
  4. 4.6 Adding Mail Servers to dnsmasq
By: O'Reilly Media
Rating: starstarstarstarstar / 1
February 03, 2010

print this article




You have some local mail servers that you want your LAN hosts to know about. How do you do this with dnsmasq?


dnsmasq has a special record type for mailservers. You need these three lines:


Themx-hostline needs the domain name, server name, and MX priority. Themx-targetline is the server name.localmxmeans all local machines should use this server.


A priority number of 5 means the server is higher priority than servers with larger numbers, typically 10 and then multiples of 10. If you have only one mail server, you should still give it a priority to keep clients happy.

See Also

  • man 5 dhclient
  • dnsmasq.conf is also a great help resource
  • dnsmasq home page (http://www.thekelleys.org.uk/dnsmasq/doc.html) is where you’ll find mailing list archives and excellent help documents
  • Chapter 24, “Managing Name Resolution,” in Linux Cookbook, by Carla Schroder (O’Reilly)

Please check back for the next part of the series.

>>> More BrainDump Articles          >>> More By O'Reilly Media

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Apple Founder Steve Jobs Dies
- Steve Jobs` Era at Apple Ends
- Google's Chrome Developer Tool Updated
- Google's Chrome 6 Browser Brings Speed to th...
- New Open Source Update Fedora 13 is Released...
- Install Linux with Knoppix
- iPad Developers Flock To SDK 3.2
- Managing a Linux Wireless Access Point
- Maintaining a Linux Wireless Access Point
- Securing a Linux Wireless Access Point
- Configuring a Linux Wireless Access Point
- Building a Linux Wireless Access Point
- Migrating Oracle to PostgreSQL with Enterpri...
- Demystifying SELinux on Kernel 2.6
- Yahoo and Microsoft Create Ad Partnership

Developer Shed Affiliates


Dev Shed Tutorial Topics: