Discussion:
[Dnsmasq-discuss] multiple soa
Алексей Кузнецов
2018-10-09 09:46:50 UTC
Permalink
Hello, i set zone with soa record and its work fine. I want add second soa
zone but dnsmasq say dublicate options in config. How to add second soa?
Petr Mensik
2018-10-10 10:07:38 UTC
Permalink
Second soa in one zone cannot be added. One zone has one soa. Can you
please share relevant configuration parts?
Post by Алексей Кузнецов
Hello, i set zone with soa record and its work fine. I want add second soa
zone but dnsmasq say dublicate options in config. How to add second soa?
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: ***@redhat.com PGP: 65C6C973
Алексей Кузнецов
2018-10-11 16:08:43 UTC
Permalink
# My zones and their subnets
auth-zone=mobile-test.example.ru
auth-zone=ns1.mobile-test.example.ru


# SOA config
auth-soa=2018101101,mobile-test.example.ru,120,120,604800

# Slave NS: nameserver2.provider.com (50.60.70.80)
# Secondary NS (slave NS at IT)
auth-sec-servers=msk-dc1.example.ru
auth-sec-servers=msk-dc2.example.ru
auth-sec-servers=msk-dc3.example.ru
auth-sec-servers=msk-DC1.example.ru
auth-sec-servers=msk-DC2.example.ru
auth-sec-servers=msk-DC3.example.ru
# Allow zone transfers to secondary NS
auth-peer=172.17.8.75
auth-peer=172.17.8.74
auth-peer=172.17.8.7

# Authoritative DNS on interface eth0
auth-server=ns1.mobile-test.example.ru,ens160

If i add these lines
auth-zone=sub.mobile-test.example.ru
auth-soa=2018101101,sub.mobile-test.example.ru,120,120,604800
i have error
dnsmasq[10843]: dnsmasq: syntax check OK.
dnsmasq[10847]: dnsmasq: illegal repeated keyword at line 29 of
/etc/dnsmasq.d/dnsmasq.conf

line 29 is auth-soa=2018101101,sub.mobile-test.example.ru,120,120,604800
Post by Petr Mensik
Second soa in one zone cannot be added. One zone has one soa. Can you
please share relevant configuration parts?
Post by Алексей Кузнецов
Hello, i set zone with soa record and its work fine. I want add second
soa
Post by Алексей Кузнецов
zone but dnsmasq say dublicate options in config. How to add second soa?
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Алексей Кузнецов
2018-10-15 19:43:43 UTC
Permalink
no chance?

On Thu, Oct 11, 2018 at 7:08 PM Алексей КузМецПв <
Post by Алексей Кузнецов
# My zones and their subnets
auth-zone=mobile-test.example.ru
auth-zone=ns1.mobile-test.example.ru
# SOA config
auth-soa=2018101101,mobile-test.example.ru,120,120,604800
# Slave NS: nameserver2.provider.com (50.60.70.80)
# Secondary NS (slave NS at IT)
auth-sec-servers=msk-dc1.example.ru
auth-sec-servers=msk-dc2.example.ru
auth-sec-servers=msk-dc3.example.ru
auth-sec-servers=msk-DC1.example.ru
auth-sec-servers=msk-DC2.example.ru
auth-sec-servers=msk-DC3.example.ru
# Allow zone transfers to secondary NS
auth-peer=172.17.8.75
auth-peer=172.17.8.74
auth-peer=172.17.8.7
# Authoritative DNS on interface eth0
auth-server=ns1.mobile-test.example.ru,ens160
If i add these lines
auth-zone=sub.mobile-test.example.ru
auth-soa=2018101101,sub.mobile-test.example.ru,120,120,604800
i have error
dnsmasq[10843]: dnsmasq: syntax check OK.
dnsmasq[10847]: dnsmasq: illegal repeated keyword at line 29 of
/etc/dnsmasq.d/dnsmasq.conf
line 29 is auth-soa=2018101101,sub.mobile-test.example.ru,120,120,604800
Post by Petr Mensik
Second soa in one zone cannot be added. One zone has one soa. Can you
please share relevant configuration parts?
Post by Алексей Кузнецов
Hello, i set zone with soa record and its work fine. I want add second
soa
Post by Алексей Кузнецов
zone but dnsmasq say dublicate options in config. How to add second soa?
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Simon Kelley
2018-10-15 22:57:07 UTC
Permalink
I have to confess I never considered this as a valid possibility, but to
does make sense, maybe.

The sane, backward-compatible way to do it might be to extend the syntax
of auth-soa, to allow a zone name to be included, so your second
auth-soa line would become

auth-soa=sub.mobile-test.ru,2018101101,sub.mobile-test.example.ru,120,120,604800

So, no, you can't do this with the existing code, sorry. It's a possible
future enhancement.

Cheers,

Simon.
Post by Алексей Кузнецов
no chance?
On Thu, Oct 11, 2018 at 7:08 PM Алексей КузМецПв
# My zones and their subnets
auth-zone=mobile-test.example.ru <http://mobile-test.example.ru>
auth-zone=ns1.mobile-test.example.ru <http://ns1.mobile-test.example.ru>
# SOA config
auth-soa=2018101101,mobile-test.example.ru
<http://mobile-test.example.ru>,120,120,604800
# Slave NS: nameserver2.provider.com
<http://nameserver2.provider.com> (50.60.70.80)
# Secondary NS (slave NS at IT)
auth-sec-servers=msk-dc1.example.ru <http://msk-dc1.example.ru>
auth-sec-servers=msk-dc2.example.ru <http://msk-dc2.example.ru>
auth-sec-servers=msk-dc3.example.ru <http://msk-dc3.example.ru>
auth-sec-servers=msk-DC1.example.ru <http://msk-DC1.example.ru>
auth-sec-servers=msk-DC2.example.ru <http://msk-DC2.example.ru>
auth-sec-servers=msk-DC3.example.ru <http://msk-DC3.example.ru>
# Allow zone transfers to secondary NS
auth-peer=172.17.8.75
auth-peer=172.17.8.74
auth-peer=172.17.8.7
# Authoritative DNS on interface eth0
auth-server=ns1.mobile-test.example.ru
<http://ns1.mobile-test.example.ru>,ens160
If i add these lines
auth-zone=sub.mobile-test.example.ru <http://sub.mobile-test.example.ru>
auth-soa=2018101101,sub.mobile-test.example.ru
<http://sub.mobile-test.example.ru>,120,120,604800
i have error
dnsmasq[10843]: dnsmasq: syntax check OK.
dnsmasq[10847]: dnsmasq: illegal repeated keyword at line 29 of
/etc/dnsmasq.d/dnsmasq.conf
line 29 is auth-soa=2018101101,sub.mobile-test.example.ru
<http://sub.mobile-test.example.ru>,120,120,604800
Second soa in one zone cannot be added. One zone has one soa. Can you
please share relevant configuration parts?
Post by Алексей Кузнецов
Hello, i set zone with soa record and its work fine. I want
add second soa
Post by Алексей Кузнецов
zone but dnsmasq say dublicate options in config. How to add
second soa?
Post by Алексей Кузнецов
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
65C6C973
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Алексей Кузнецов
2018-10-16 05:10:00 UTC
Permalink
Thx for answer.
Post by Simon Kelley
I have to confess I never considered this as a valid possibility, but to
does make sense, maybe.
The sane, backward-compatible way to do it might be to extend the syntax
of auth-soa, to allow a zone name to be included, so your second
auth-soa line would become
auth-soa=sub.mobile-test.ru,2018101101,sub.mobile-test.example.ru
,120,120,604800
So, no, you can't do this with the existing code, sorry. It's a possible
future enhancement.
Cheers,
Simon.
Post by Алексей Кузнецов
no chance?
On Thu, Oct 11, 2018 at 7:08 PM Алексей КузМецПв
# My zones and their subnets
auth-zone=mobile-test.example.ru <http://mobile-test.example.ru>
auth-zone=ns1.mobile-test.example.ru <
http://ns1.mobile-test.example.ru>
Post by Алексей Кузнецов
# SOA config
auth-soa=2018101101,mobile-test.example.ru
<http://mobile-test.example.ru>,120,120,604800
# Slave NS: nameserver2.provider.com
<http://nameserver2.provider.com> (50.60.70.80)
# Secondary NS (slave NS at IT)
auth-sec-servers=msk-dc1.example.ru <http://msk-dc1.example.ru>
auth-sec-servers=msk-dc2.example.ru <http://msk-dc2.example.ru>
auth-sec-servers=msk-dc3.example.ru <http://msk-dc3.example.ru>
auth-sec-servers=msk-DC1.example.ru <http://msk-DC1.example.ru>
auth-sec-servers=msk-DC2.example.ru <http://msk-DC2.example.ru>
auth-sec-servers=msk-DC3.example.ru <http://msk-DC3.example.ru>
# Allow zone transfers to secondary NS
auth-peer=172.17.8.75
auth-peer=172.17.8.74
auth-peer=172.17.8.7
# Authoritative DNS on interface eth0
auth-server=ns1.mobile-test.example.ru
<http://ns1.mobile-test.example.ru>,ens160
If i add these lines
auth-zone=sub.mobile-test.example.ru <
http://sub.mobile-test.example.ru>
Post by Алексей Кузнецов
auth-soa=2018101101,sub.mobile-test.example.ru
<http://sub.mobile-test.example.ru>,120,120,604800
i have error
dnsmasq[10843]: dnsmasq: syntax check OK.
dnsmasq[10847]: dnsmasq: illegal repeated keyword at line 29 of
/etc/dnsmasq.d/dnsmasq.conf
line 29 is auth-soa=2018101101,sub.mobile-test.example.ru
<http://sub.mobile-test.example.ru>,120,120,604800
Second soa in one zone cannot be added. One zone has one soa. Can you
please share relevant configuration parts?
Post by Алексей Кузнецов
Hello, i set zone with soa record and its work fine. I want
add second soa
Post by Алексей Кузнецов
zone but dnsmasq say dublicate options in config. How to add
second soa?
Post by Алексей Кузнецов
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Post by Алексей Кузнецов
--
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
65C6C973
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...