Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 14:49:59

Author Topic: Add Secondary DNS and 52.50.81.210 issue  (Read 3870 times)

0 Members and 1 Guest are viewing this topic.

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Add Secondary DNS and 52.50.81.210 issue
« on: 2017-01-31, 12:40:15 »
Hi all

I have try this morning to add a secondary dns... and allow transfert to get 2 dns in different subnets.

the first DNS is working correctly
Quote
[root@hxxxxm ~]# ping ns1.hxxxxm.net
PING ns1.hxxxxm.net (107.xxx.65.233) 56(84) bytes of data.
64 bytes from hxxxxm.net (107.xxx.65.233): icmp_seq=1 ttl=64 time=0.031 ms

But the second one give me a diffrent IP when i try to ping it from the kloxo-mr master server
Quote
[root@hxxxxm ~]# ping ns2.hxxxxm.net
PING ns2.hxxxxm.net.net (52.50.81.210) 56(84) bytes of data.

Kind of DNS poisining...

in kloxo i created A zone with my secondary dns... and changed __base__ on ns2 with ns2

The kloxo generated zone file:
Quote
;;; begin - dns of 'hxxxxm.net' - do not remove/modify this line

$ORIGIN hxxxxm.net.
$TTL 1209600
hxxxxm.net. IN SOA ns1.hxxxxm.net. admin.hxxxxm.net. ( 2017013134 3600 1800 604800 3600 )
hxxxxm.net. IN NS ns1.hxxxxm.net.
cp.hxxxxm.net. IN A 107.xxx.65.233
hxxxxm.net. IN A 107.xxx.65.233
ns1.hxxxxm.net. IN A 107.xxx.65.233
ns2.hxxxxm.net. IN A 92.xxx.103.12

mail.hxxxxm.net. IN A 107.xxx.65.233
www.hxxxxm.net. IN A 107.xxx.65.233
ftp.hxxxxm.net. IN A 107.xxx.65.233
stats.hxxxxm.net. IN A 107.xxx.65.233
webmail.hxxxxm.net. IN A 107.xxx.65.233
lists.hxxxxm.net. IN A 107.xxx.65.233
smtp.hxxxxm.net. IN CNAME mail.hxxxxm.net.
pop.hxxxxm.net. IN CNAME mail.hxxxxm.net.
imap.hxxxxm.net. IN CNAME mail.hxxxxm.net.
hxxxxm.net. IN MX 10 mail.hxxxxm.net.
ns2.hxxxxm.net. IN NS ns2.hxxxxm.net.
_domainkey.hxxxxm.net. IN TXT "t=y; o=-; r=admin@hxxxxm.net"
private._domainkey.hxxxxm.net. IN TXT ("v=DKIM1; g=*; k=rsa; "
    "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDUtm7wFK0JXhY48yTNeZkiA2S"
    "zWs/5uUCdvMKz2C//TmWqD7M+KLx9McZzvAGnDuuuj5fcGNlAVQCWoKd6F+yTm95"
    "PhawlIO372Dmux6reblmT6/uJGXDNjNOF4F9Ia43Q9qrIOz7sFHRSiV9FOjPKJZO"
    "CtpUgcrzCfRNnhU+AwIDAQAB")
hxxxxm.net. IN TXT "v=spf1 a mx ip4:107.xxx.65.233 ~all"
_dmarc.hxxxxm.net. IN TXT "v=DMARC1; p=none; pct=20; rua=mailto:admin@hxxxxm.net"

;;; end - dns of 'hxxxxm.net' - do not remove/modify this line



I have a remark for this auto generated dns template (maybe i m wrong):
- 1209600 would be default rfc expiration and not $TTL must be corrected. Default TTL could be 86400
- the 604800 should be the default 1209600 RFC one.. the famous (14days-28days)...

RFC 1912 recommends 1209600-2419200 is for default expiration and not default $TTL... the template have generated 604800 for the expiration date...



is any body have try to get working the secondary dns?




« Last Edit: 2017-01-31, 12:56:24 by scorpus »
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add Secondary DNS and 52.50.81.210 issue
« Reply #1 on: 2017-01-31, 13:33:42 »
Use 'hxxxxm.net. IN NS ns2.hxxxxm.net.' instead 'ns2.hxxxxm.net. IN NS ns2.hxxxxm.net.'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Re: Add Secondary DNS and 52.50.81.210 issue
« Reply #2 on: 2017-01-31, 13:45:09 »
i already try it, if i use 'hxxxxm.net. IN NS ns2.hxxxxm.net.' instead 'ns2.hxxxxm.net. IN NS ns2.hxxxxm.net.'.

i will get thet same primary base for the 2 DNS servers because hxxxxm.net. IN A 107.xxx.65.233 (kloxo-mr server)...

ns2.hxxxxm.net should be 92.xxx.103.12 (slave server) not 107.xxx.65.233...

i resolved the 52.50.81.210 issue by disabling recursive mod in the slave DNS...

i can read zone from the secondary DNS but still can't transfert zones automatically(I have 2 different SOA)

Quote
Testing transfer of slave zone from 92.xxx.103.12 ..
.. from 92.xxx.103.12 : Failed : ; <<>> DiG 9.9.7 <<>> IN AXFR ns2.hxxxxm.net @92.xxx.103.12 ;; global options: +cmd ; Transfer failed.


I will try to wait perdiod finish to see if SOA will be updated alone.  :-X :-\ :o
« Last Edit: 2017-01-31, 13:53:53 by scorpus »
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add Secondary DNS and 52.50.81.210 issue
« Reply #3 on: 2017-01-31, 14:28:13 »
Check your domain to intodns.com. May trouble if your secondary dns server is 'lame' nameserver.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline scorpus

  • Junior Member
  • *
  • Posts: 25
  • Karma: +0/-0
  • Gender: Male
    • View Profile
    • Simple Spk Server
Re: Add Secondary DNS and 52.50.81.210 issue
« Reply #4 on: 2017-01-31, 17:10:40 »
the famous 52.50.81.210 is come back again. it's not comming from the recursive mode...
i cleaned cache with rndc dumpdb and rndc flush but still same thing... very weird it's gone and come back alone

secondary server is lame despite if i use 'hxxxxm.net. IN NS ns2.hxxxxm.net' in some dns servers(not all)  (tested with intodns.com)


and when i add the secondary server into advanced in home panel the "/opt/configs/nsd/conf/slave/ns2.hxxxxm.net" isn't created i see this error in webmin (bind section)...


« Last Edit: 2017-01-31, 17:15:40 by scorpus »
--
Linux - Cardsharing - kloxoMr - Xpenology - IPTV(XtreamCode)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Add Secondary DNS and 52.50.81.210 issue
« Reply #5 on: 2017-02-01, 02:04:49 »
Use 'Secondary DNS Configures' to add secondary dns in secondary server.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.03 seconds with 18 queries.

web stats analysis