<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/src/services/vyos-hostsd, branch equuleus</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/marekm72/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/marekm72/vyos-1x.git/atom?h=equuleus</id>
<link rel='self' href='https://git.amelek.net/marekm72/vyos-1x.git/atom?h=equuleus'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/'/>
<updated>2022-11-05T01:26:43+00:00</updated>
<entry>
<title>dns: T4799: fix bug with not reloading powerdns config</title>
<updated>2022-11-05T01:26:43+00:00</updated>
<author>
<name>initramfs</name>
<email>initramfs@initramfs.io</email>
</author>
<published>2022-11-05T00:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=ae30110b9fe47000693ecaeb63d9ecef1d4ef720'/>
<id>urn:sha1:ae30110b9fe47000693ecaeb63d9ecef1d4ef720</id>
<content type='text'>
PowerDNS version 4.7 and above has changed the main process name from
'pdns-r/worker' to 'pdns_recursor'. This commit updates the process
name check to use the new name.

(cherry picked from commit ff09d4f47e5f54fad8258cd27fb0adfaa4c552b3)
</content>
</entry>
<entry>
<title>hosts: T2683: Allow multiple entries for static-host-mapping</title>
<updated>2022-07-05T06:38:14+00:00</updated>
<author>
<name>Viacheslav</name>
<email>v.gletenko@vyos.io</email>
</author>
<published>2021-10-22T11:55:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=ae41b2bacfe1ed30ea8311278e4560d8cfb244ae'/>
<id>urn:sha1:ae41b2bacfe1ed30ea8311278e4560d8cfb244ae</id>
<content type='text'>
(cherry picked from commit b1db3de80b8b5f4e2dcbc6d687d342986345c4b2)
</content>
</entry>
<entry>
<title>T2465: Fixing permissions on socket so DHCP works</title>
<updated>2020-11-03T17:47:59+00:00</updated>
<author>
<name>kroy</name>
<email>kroy@kroy.io</email>
</author>
<published>2020-11-03T17:47:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=e0830658dcba7d62b914479c6d8ab4e5a1312760'/>
<id>urn:sha1:e0830658dcba7d62b914479c6d8ab4e5a1312760</id>
<content type='text'>
</content>
</entry>
<entry>
<title>dns: forwarding: T2921: migrate to get_config_dict()</title>
<updated>2020-09-25T17:21:36+00:00</updated>
<author>
<name>Christian Poessinger</name>
<email>christian@poessinger.com</email>
</author>
<published>2020-09-25T17:21:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=f39f5dde342aa5e14d1fb4155920c61ac5fd11b1'/>
<id>urn:sha1:f39f5dde342aa5e14d1fb4155920c61ac5fd11b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vyos-hostsd: T2583: partial rewrite</title>
<updated>2020-06-11T20:10:47+00:00</updated>
<author>
<name>Jernej Jakob</name>
<email>jernej.jakob@gmail.com</email>
</author>
<published>2020-06-11T05:58:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=8797a010fcad067fbe604ed3e75c0605e9b5d1f7'/>
<id>urn:sha1:8797a010fcad067fbe604ed3e75c0605e9b5d1f7</id>
<content type='text'>
- update copyright date
- validate incoming JSON data against a schema with voluptuous
- add usage help describing internal messages syntax at top of vyos-hostsd
- move socket and state file to directory /run/vyos-hostsd
- replace jinja2 rendering with vyos.template
- move all templates out of the executable into dedicated data/templates dirs
- move recursor.conf forward-zones-recurse to forward-zones-file
- generate lua-config-file for pdns-recursor with addNTA
- support adding custom forward zones for pdns-recursor with optional added NTA and/or recursion-desired
- move search_domains from set_host_name to separate add/delete/get commands
- unify functions to support abstracting them in the future
- track number of internal changes in "changes" variable saved in state file (informational in apply function)
- do not apply changes immediately, add apply function that applies all changes (to not reload pdns-recursor excessively for a large set of changes, users must call the apply function once at the end)
- add pdns_rec_control function that supports sending arbitrary commands to rec_control (fix pdns-recursor process name that caused the old function to think pdns-recursor was never running)
- create /run/powerdns if it doesn't exist (on boot vyos-hostsd starts before pdns-recursor but we need to put our generated conf files there)
- abstract specific command functions (add_*/del_*) into general functions to manipulate various types of data in the state variable
- add command types:
  - forward_zones (generate custom forward zones for pdns-recursor)
  - search_domains (move from set_host_name as dhcp client needs to change them too)
  - name_server_tags_recursor (to set tags whose nameservers are added to pdns-recursor)
  - name_server_tags_system (to set tags whose nameservers and search domains are added to /etc/resolv.conf)
- change hosts data format to make more sense (move tag from within each host dict to the key for a list of host dicts)
- do not remove state file when shut down cleanly, to not lose state when restarting vyos-hostsd service that's then impossible to restore without restarting the whole router - a reboot will remove the state file as it lives in a tmpfs (/run)
- remove too verbose info log on every received message
- set mode of socket to 770 to secure it against processes not in hostsd group
</content>
</entry>
<entry>
<title>dhcp: T2465: T2483: fix DNS resolution (pdns restatt)</title>
<updated>2020-05-28T05:39:45+00:00</updated>
<author>
<name>kroy-the-rabbit</name>
<email>kroy@kroy.io</email>
</author>
<published>2020-05-28T05:39:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=5b1ac79562bd60494c9ec31723b27b0affe7fe5c'/>
<id>urn:sha1:5b1ac79562bd60494c9ec31723b27b0affe7fe5c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T2465: Permissions on vyos-hostsd socket incorrect</title>
<updated>2020-05-20T01:44:28+00:00</updated>
<author>
<name>kroy-the-rabbit</name>
<email>kroy@kroy.io</email>
</author>
<published>2020-05-20T01:44:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=9922afc6930d4ddf0422860bdfe23113648ca5db'/>
<id>urn:sha1:9922afc6930d4ddf0422860bdfe23113648ca5db</id>
<content type='text'>
The DHCP server is unable to apply entries to the hosts file because the permissions on the socket are getting created wrong.

```
$ ls -al /run/vyos-hostsd.sock
srwxrwxrwx 1 root vyattacfg 0 May 20 01:38 /run/vyos-hostsd.sock

```

This gives it the correct permissions so that the nobody/nobody user/group can change it.</content>
</entry>
<entry>
<title>[T2311] name servers via cmdline can't take effect</title>
<updated>2020-04-17T17:17:48+00:00</updated>
<author>
<name>Maple Wang</name>
<email>maple.feng.wang@hotmail.com</email>
</author>
<published>2020-04-17T17:17:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=4b2d2839e93f7df8e61e5f8f8a4ad94bcdb308d5'/>
<id>urn:sha1:4b2d2839e93f7df8e61e5f8f8a4ad94bcdb308d5</id>
<content type='text'>
Please refer to https://phabricator.vyos.net/T2311</content>
</entry>
<entry>
<title>vyos-hostsd: T1885: Fixed crash if stdout PIPE connection lost</title>
<updated>2019-12-19T18:10:08+00:00</updated>
<author>
<name>zsdc</name>
<email>taras@vyos.io</email>
</author>
<published>2019-12-19T18:10:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=bfe4ba0873b9d337e94add5d12e6fcb46c6c0382'/>
<id>urn:sha1:bfe4ba0873b9d337e94add5d12e6fcb46c6c0382</id>
<content type='text'>
In case if stdout PIPE were lost (for example, after systemd-journald restart), using print() will raise the exception.
This patch replaces print() to logging function, which is not sensitive to this problem. This makes vyos-hostd resistant to stdout disconnection, but of course, all logs after stdout disconnection will be lost.
</content>
</entry>
<entry>
<title>dns: T1786: add proper processing of 'system disable-dhcp-nameservers'</title>
<updated>2019-11-17T17:10:30+00:00</updated>
<author>
<name>zdc</name>
<email>zdc@users.noreply.github.com</email>
</author>
<published>2019-11-17T17:10:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/vyos-1x.git/commit/?id=4e4f1dbd745952a24d70c3e2d7dc495d675dff34'/>
<id>urn:sha1:4e4f1dbd745952a24d70c3e2d7dc495d675dff34</id>
<content type='text'>
</content>
</entry>
</feed>
