Re: [chrony-users] Using symbolic network names in /etc/chrony.conf file? |
[ Thread Index |
Date Index
| More chrony.tuxfamily.org/chrony-users Archives
]
- To: chrony-users@xxxxxxxxxxxxxxxxxxxx
- Subject: Re: [chrony-users] Using symbolic network names in /etc/chrony.conf file?
- From: Bryan Christianson <bryan@xxxxxxxxxxxxx>
- Date: Wed, 26 Jul 2017 02:52:25 +1200
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=a1-4; h=Feedback-ID:X-Smtpcorp-Track:Message-Id:To:Date: Subject:From:Reply-To:Sender:List-Unsubscribe; bh=zSeVQpUAQ3wuoUAVhEaJQRFQD9hFg3lm2XXQgtDqQU0=; b=QeDF/mgozEm8ZJF7q+I4/BDZEF xS0uZSGS7fepqgCh9UF6+oX0aKLZm+I2nSbv1Va+tOZ5dtZ2vCmoe3vRlC/OBodLa9OsvIPD/Ec43 8Lu15fhrOo38ittA4pFtOMibYpSqKrd9qQ2QLJAfB+q0iseDa6TOxNPXeBwfgAcrXOZwwn2u6MvG4 dIHu+54GZ/LTMlzr8kgWHLNLuetCbfE9Gd2Eu5OGVLt8VNoIzJtuUrBoo7xfhYz+fRLkp0qM4I+1p y8g8CYRTlf5PTneZTUlAiMEXoPXKHPA9shIMH2PaduphAINBayXYb8mz5NQSTTJ5dQgmKexGZUuqi qnguuJiw==;
- Feedback-id: 149811m:149811acx33YQ:149811sscACMZ4tb:SMTPCORP
My view on this is that host/prefix is a shorthand notation for (ip_address & mask) and that should work for both IPv6 and IPv4.
i.e. there is an assumption that people understand how the network and mask are both calculated and used.
I have no problem with the ip part being either a name or an address. In the case of a name, there is always the dilemma of which ip address to use if there are multiple A records for that name.
In chrony I think name/prefix could mean all hosts in the network defined by (address & mask) == (host & mask)
> On 26/07/2017, at 2:40 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote:
>
> On Tue, Jul 25, 2017 at 10:28:09AM -0400, Chris Greenman wrote:
>> When you specify a hostname, that's it. It's a 32bit address (ipv4 of
>> course). Throwing a netmask on it does nothing except specify that your
>> network segment has 64,510 usable addresses. Now if you edit /etc/networks
>> and add mynet 10.10.0.0 then you can use the mynet/16 notation in your
>> chrony.conf
>
> If the network is specified in /etc/networks, there should be no need
> to add /16, right?
>
> chronyd doesn't use the getnet*() functions (which work with
> /etc/networks), so I'm wondering how does that work. It doesn't seem
> to work for me.
>
> --
> Miroslav Lichvar
>
> --
> To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> with "unsubscribe" in the subject.
> For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
> with "help" in the subject.
> Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.
>
Bryan Christianson
bryan@xxxxxxxxxxxxx
--
To unsubscribe email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "unsubscribe" in the subject.
For help email chrony-users-request@xxxxxxxxxxxxxxxxxxxx
with "help" in the subject.
Trouble? Email listmaster@xxxxxxxxxxxxxxxxxxxx.