Local network - MX record creation

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
jcdole
DD-WRT Novice


Joined: 13 Jun 2015
Posts: 42
Location: South-West France

PostPosted: Sun Jun 03, 2018 16:05    Post subject: Local network - MX record creation Reply with quote
Hello.
I plan to install a mail server on a local network.
I tried to force a MX record to point to the local lan's mail server by using this tips from thread [how-to] Split DNS with DNSMasq :
https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=208949
But nslookup or dig return a A record :
Code:
~ # dig mailsrv.my_domain.dom

; <<>> DiG 9.9.9-P1 <<>> mailsrv.my_domain.dom
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41987
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mailsrv.my_domain.dom.      IN      A

;; ANSWER SECTION:
mailsrv.my_domain.dom. 0     IN      A       192.168.130.80

;; Query time: 0 msec
;; SERVER: 192.168.130.230#53(192.168.130.230)
;; WHEN: Sun Jun 03 17:54:50 CEST 2018
;; MSG SIZE  rcvd: 58


Here is my real config :
Code:
#
domain=my_domain.dom
local=/my_domain.dom/
local=/localdomain/my_domain.dom/
address=/my_domain.dom/192.168.130.230
#
# MAIL SERVER ( address different than web server )
address=/mailsrv.my_domain.dom/192.168.130.80
ptr-record=80.130.168.192.in-addr.arpa,mailsrv.my_domain.dom
mx-host=my_domain,mailsrv.my_domain.dom
#
# WEB SERVER ( address different than mail server )
address=/www.my_domain.dom/192.168.130.230
ptr-record=230.130.168.192.in-addr.arpa,www.my_domain.dom
#


/tmp/resolv.conf /tmp/resolv.dnsmasq and full /tmp/dnsmasq.conf are here :
http://paste.opensuse.org/16512704

Any help is welcome

_________________
Netgear R6300v2 DD-WRT v3.0-r47495 std (09/28/21) - Linux Opensuse Leap 15.2 - Win 10
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum