openresolv
6 years agoDon't wait around trying to create a lock if we don't have permission.
Roy Marples [Mon, 20 Oct 2014 08:34:04 +0000 (08:34 +0000)]
Don't wait around trying to create a lock if we don't have permission.

6 years ago-V is the same as -v but only echo's information set in resolvconf.conf
Roy Marples [Mon, 20 Oct 2014 00:02:15 +0000 (00:02 +0000)]
-V is the same as -v but only echo's information set in resolvconf.conf
(ie, discards dynamically learned interfaces)
resolv_conf_passthrough can now be set to /dev/null or NULL which
will now use the -V option instead of the -v option to resolvconf.

6 years agoAllow unsetting of vars
Roy Marples [Sun, 19 Oct 2014 23:31:23 +0000 (23:31 +0000)]
Allow unsetting of vars

6 years agoAllow the disabling of resolvconf or optionally an individual subscriber.
Roy Marples [Sun, 19 Oct 2014 21:34:32 +0000 (21:34 +0000)]
Allow the disabling of resolvconf or optionally an individual subscriber.

6 years agolocal_nameservers now defaults to 127.* 0.0.0.0 255.255.255.255 ::1
Roy Marples [Sun, 19 Oct 2014 20:19:00 +0000 (20:19 +0000)]
local_nameservers now defaults to 127.* 0.0.0.0 255.255.255.255 ::1
and is used instead of a hard coded list.

6 years agoUpdate copyright
Roy Marples [Thu, 16 Oct 2014 10:41:04 +0000 (10:41 +0000)]
Update copyright

6 years agoUse yes rather than random text.
Roy Marples [Thu, 16 Oct 2014 10:21:50 +0000 (10:21 +0000)]
Use yes rather than random text.

6 years agounbound_insecure can disable DNSSEC for all domains processed.
Roy Marples [Thu, 16 Oct 2014 10:18:12 +0000 (10:18 +0000)]
unbound_insecure can disable DNSSEC for all domains processed.
Fixes [dcbe3f5cf1].

6 years agoImprove documentation to mention correct quoting and escaping.
Roy Marples [Thu, 16 Oct 2014 10:03:14 +0000 (10:03 +0000)]
Improve documentation to mention correct quoting and escaping.

7 years agoEnsure that name_server_blacklist works for more than one option.
Roy Marples [Fri, 9 May 2014 09:10:59 +0000 (09:10 +0000)]
Ensure that name_server_blacklist works for more than one option.
Thanks to Frederic Barthelery.

7 years agoDon't moan if dnsmasq has not written a pidfile.
Roy Marples [Mon, 5 May 2014 22:18:15 +0000 (22:18 +0000)]
Don't moan if dnsmasq has not written a pidfile.

7 years agoAdd new install targets
Roy Marples [Mon, 5 May 2014 22:17:46 +0000 (22:17 +0000)]
Add new install targets

7 years agoImport newest os detection from dhcpcd openresolv-3.5.7
Roy Marples [Wed, 30 Apr 2014 08:58:55 +0000 (08:58 +0000)]
Import newest os detection from dhcpcd

7 years agoRelease openresolv-3.5.7
Roy Marples [Wed, 30 Apr 2014 08:54:40 +0000 (08:54 +0000)]
Release openresolv-3.5.7

7 years agoClose .Bl with an .El
Roy Marples [Wed, 30 Apr 2014 08:53:03 +0000 (08:53 +0000)]
Close .Bl with an .El

7 years agoSupport gmake-3 and gmake-4
Roy Marples [Wed, 23 Apr 2014 16:32:29 +0000 (16:32 +0000)]
Support gmake-3 and gmake-4

7 years agoMove important name and version to the top.
Roy Marples [Wed, 23 Apr 2014 14:24:20 +0000 (14:24 +0000)]
Move important name and version to the top.

7 years agoAdd config-null.mk and a nasty hack to include config.mk instead if it exists.
Roy Marples [Wed, 23 Apr 2014 14:21:15 +0000 (14:21 +0000)]
Add config-null.mk and a nasty hack to include config.mk instead if it exists.
This allows make clean to work without configure being run.
Default settings to NetBSD.

7 years ago[d6cddf7bc4] Correct grammar.
Roy Marples [Thu, 17 Apr 2014 09:24:02 +0000 (09:24 +0000)]
[d6cddf7bc4] Correct grammar.

7 years agoAlthough the addition, removal or updating of an interface resolv.conf
Roy Marples [Thu, 9 Jan 2014 13:03:08 +0000 (13:03 +0000)]
Although the addition, removal or updating of an interface resolv.conf
is an atmoic operation (because we use mv(1)) our subscribers are not
guaranteed to be either atomic, nor serialised when restarting them.
As such, introduce locking via mkdir(1) to enforce serialisation.

7 years agoWarn about each interface we fail to delete instead of bailing at the first.
Roy Marples [Thu, 9 Jan 2014 09:54:38 +0000 (09:54 +0000)]
Warn about each interface we fail to delete instead of bailing at the first.
If the whole interface deletion action didn't change anything then exit
with an error unless forced.

7 years agoEnsure that creating interface resolv.conf files is an atomic operation.
Roy Marples [Thu, 9 Jan 2014 00:18:39 +0000 (00:18 +0000)]
Ensure that creating interface resolv.conf files is an atomic operation.

7 years agoRemove .gitignore
Roy Marples [Wed, 8 Jan 2014 20:25:03 +0000 (20:25 +0000)]
Remove .gitignore

8 years agoUse Mt for email address.
Roy Marples [Tue, 23 Jul 2013 16:49:33 +0000 (16:49 +0000)]
Use Mt for email address.
Thanks to Thomas Klausner.

8 years agoRelease openresolv-3.5.6 openresolv-3.5.6
Roy Marples [Fri, 12 Jul 2013 16:41:38 +0000 (16:41 +0000)]
Release openresolv-3.5.6

8 years agoname_servers[_append] and search_domains[_append] now apply
Roy Marples [Fri, 12 Jul 2013 12:59:56 +0000 (12:59 +0000)]
name_servers[_append] and search_domains[_append] now apply
to all subscribers instead of just libc.

8 years agoAllows putting resolvconf into /usr/bin.
Roy Marples [Tue, 4 Jun 2013 12:05:31 +0000 (12:05 +0000)]
Allows putting resolvconf into /usr/bin.
Thanks to Jan Alexander Steffens.

8 years agoRelease openresolv-3.5.5 openresolv-3.5.5
Roy Marples [Tue, 4 Jun 2013 09:25:57 +0000 (09:25 +0000)]
Release openresolv-3.5.5

8 years agoFix newline generation, #26
Roy Marples [Mon, 3 Jun 2013 13:19:24 +0000 (13:19 +0000)]
Fix newline generation, #26

8 years agoDisregard dhcpcd setting interface_order
Roy Marples [Thu, 16 May 2013 19:18:32 +0000 (19:18 +0000)]
Disregard dhcpcd setting interface_order

8 years agoCorrect resolv_conf_local_only description.
Roy Marples [Sat, 27 Apr 2013 09:38:01 +0000 (09:38 +0000)]
Correct resolv_conf_local_only description.
Fixes #24 thanks to Jouke

8 years agoRelease openresolv-3.5.4 openresolv-3.5.4
Roy Marples [Fri, 4 Jan 2013 10:04:21 +0000 (10:04 +0000)]
Release openresolv-3.5.4

8 years agoDetect and work with systemd.
Roy Marples [Fri, 4 Jan 2013 09:28:11 +0000 (09:28 +0000)]
Detect and work with systemd.
Another fix for #10 as Arch has upgraded to it.

8 years agonameservers= should be name_servers=
Roy Marples [Sun, 30 Dec 2012 11:06:39 +0000 (11:06 +0000)]
nameservers= should be name_servers=
Split nameservers into name servers in documentation
Fixes #21

8 years agoStop quering the dnsmasq pidfile, compile options and dbus pidfile.
Roy Marples [Fri, 7 Dec 2012 15:18:30 +0000 (15:18 +0000)]
Stop quering the dnsmasq pidfile, compile options and dbus pidfile.
Just interrogate DBus for the available dnsmasq interfaces.

8 years agoAlign comment better.
Roy Marples [Fri, 7 Dec 2012 11:05:30 +0000 (11:05 +0000)]
Align comment better.

8 years agoOur test for SetDomainServers being in dnsmasq relies on dnsmasq having
Roy Marples [Fri, 7 Dec 2012 11:00:28 +0000 (11:00 +0000)]
Our test for SetDomainServers being in dnsmasq relies on dnsmasq having
enable-dbus already set which may not be the case which causes needless spam.
Fix this in the code and advise adding enable-dbus to the main dnsmasq config.

8 years agoRelease openresolv-3.5.3 openresolv-3.5.3
Roy Marples [Thu, 6 Dec 2012 11:25:04 +0000 (11:25 +0000)]
Release openresolv-3.5.3

8 years agoProtocols are normally interface:protocol, so sort by this accordingly.
Roy Marples [Sun, 2 Dec 2012 00:37:12 +0000 (00:37 +0000)]
Protocols are normally interface:protocol, so sort by this accordingly.

8 years agoSupport SetDomainServers DBus method for dnsmasq so we can specify IPv6 linklocal...
Roy Marples [Sun, 2 Dec 2012 00:06:28 +0000 (00:06 +0000)]
Support SetDomainServers DBus method for dnsmasq so we can specify IPv6 linklocal nameservers.

8 years agoSend dnsmasq IPv6 addresses constructed like A:B::C
Roy Marples [Wed, 7 Nov 2012 11:15:59 +0000 (11:15 +0000)]
Send dnsmasq IPv6 addresses constructed like A:B::C

8 years agoAdd a section about integration.
Roy Marples [Tue, 2 Oct 2012 13:36:00 +0000 (13:36 +0000)]
Add a section about integration.
Fixes #19.

8 years agoUpdate copyright.
Roy Marples [Tue, 2 Oct 2012 13:35:35 +0000 (13:35 +0000)]
Update copyright.

8 years agoDetect Slackware named (rc.bind) service.
Roy Marples [Tue, 2 Oct 2012 13:27:59 +0000 (13:27 +0000)]
Detect Slackware named (rc.bind) service.

9 years agoIf we receive multiple dns servers against a domain,
Roy Marples [Mon, 11 Jun 2012 15:40:37 +0000 (15:40 +0000)]
If we receive multiple dns servers against a domain,
only the first address is passed to dnsmasq over dbus.
Thanks to Naveen Rao.

9 years agoEmulate autoconf a bit more
Roy Marples [Sat, 21 Apr 2012 17:20:15 +0000 (17:20 +0000)]
Emulate autoconf a bit more

9 years agoRelease openresolv-3.5.2 openresolv-3.5.2
Roy Marples [Fri, 6 Apr 2012 15:13:17 +0000 (15:13 +0000)]
Release openresolv-3.5.2

9 years agoPrefer /run and /libexec if found, otherwise fallback to /var/run and
Roy Marples [Sun, 1 Apr 2012 17:25:23 +0000 (17:25 +0000)]
Prefer /run and /libexec if found, otherwise fallback to /var/run and
/lib if not.
Wrap service restart commands in if ... ; then ; fi so that the existance
check always returns zero to resolvconf if not found.

9 years agoDon't restart dnsmasq needlessly.
Roy Marples [Fri, 30 Mar 2012 09:36:56 +0000 (09:36 +0000)]
Don't restart dnsmasq needlessly.

9 years agoRelease openresolv-3.5.1 openresolv-3.5.1
Roy Marples [Tue, 27 Mar 2012 21:18:47 +0000 (21:18 +0000)]
Release openresolv-3.5.1

9 years agoFix resolv_conf_local_only.
Roy Marples [Tue, 27 Mar 2012 21:16:28 +0000 (21:16 +0000)]
Fix resolv_conf_local_only.

9 years agoRelease openresolv-3.5.0 openresolv-3.5.0
Roy Marples [Mon, 26 Mar 2012 14:29:53 +0000 (14:29 +0000)]
Release openresolv-3.5.0

9 years agoFix IPv6 parsing when a domain has an IPv4 address also.
Roy Marples [Mon, 26 Mar 2012 14:28:34 +0000 (14:28 +0000)]
Fix IPv6 parsing when a domain has an IPv4 address also.

9 years agoAdd .Lk macro to URLs
Roy Marples [Mon, 19 Mar 2012 11:10:53 +0000 (11:10 +0000)]
Add .Lk macro to URLs

9 years agoTurn of globbing when matching backlist entries.
Roy Marples [Wed, 22 Feb 2012 20:38:35 +0000 (20:38 +0000)]
Turn of globbing when matching backlist entries.
Fixes #16 again.

9 years agoAdd domain_blacklist and name_server_blacklist variables.
Roy Marples [Wed, 22 Feb 2012 13:42:52 +0000 (13:42 +0000)]
Add domain_blacklist and name_server_blacklist variables.
We default name_server_blacklist to 0.0.0.0 and allow pattern matching
on both lists.
Fixes #16.

9 years agoAdd resolv_conf_local_only which defaults to true.
Roy Marples [Wed, 22 Feb 2012 11:26:33 +0000 (11:26 +0000)]
Add resolv_conf_local_only which defaults to true.
This means that the default behaviour is not to add any nameservers to
resolv.conf if we have a local nameserver. This way we don't query the
servers twice if a host isn't found, but does rely on a working
local nameserver. Set it to false to revert to the prior behaviour.

9 years agoRelease openresolv-3.4.6 openresolv-3.4.6
Roy Marples [Tue, 31 Jan 2012 09:07:14 +0000 (09:07 +0000)]
Release openresolv-3.4.6

9 years agoCopyright
Roy Marples [Mon, 30 Jan 2012 23:28:27 +0000 (23:28 +0000)]
Copyright

9 years agoSend IPv6 domain servers to dnsmasq via dbus.
Roy Marples [Mon, 30 Jan 2012 23:27:53 +0000 (23:27 +0000)]
Send IPv6 domain servers to dnsmasq via dbus.

9 years agodnsmasq does not support setting IPv6 domain forwarders over dbus :(
Roy Marples [Thu, 15 Dec 2011 02:13:27 +0000 (02:13 +0000)]
dnsmasq does not support setting IPv6 domain forwarders over dbus :(

9 years agoRelease openresolv-3.4.5 openresolv-3.4.5
Roy Marples [Thu, 24 Nov 2011 00:03:59 +0000 (00:03 +0000)]
Release openresolv-3.4.5

9 years agoEnsure that we save all changes, including just a metric or privacy change
Roy Marples [Wed, 23 Nov 2011 22:09:21 +0000 (22:09 +0000)]
Ensure that we save all changes, including just a metric or privacy change
and pass this onto our subscribers accordingly.

9 years agoAdd domain, if available, to resolv.conf.
Roy Marples [Fri, 12 Aug 2011 13:19:25 +0000 (13:19 +0000)]
Add domain, if available, to resolv.conf.
Only add search if available and different from domain.
This allows us to more acurately represent the given data even if a little
superfluous.

9 years agoresolvconf -v now outputs DOMAIN= which is the first domain (not search) processed.
Roy Marples [Thu, 11 Aug 2011 17:32:50 +0000 (17:32 +0000)]
resolvconf -v now outputs DOMAIN= which is the first domain (not search) processed.

9 years agoUse read -r so that we ignore any backslash.
Roy Marples [Thu, 11 Aug 2011 12:26:17 +0000 (12:26 +0000)]
Use read -r so that we ignore any backslash.

9 years agoInstead of extracting options and sortlist we now just dump
Roy Marples [Thu, 11 Aug 2011 10:20:25 +0000 (10:20 +0000)]
Instead of extracting options and sortlist we now just dump
everthing that is not a nameserver, domain or search from our
listed resolv.confs.
We append our configured options and sortlist at the end of this to override
anything if needed.

9 years agoDocument resolv_conf_sortlist.
Roy Marples [Thu, 11 Aug 2011 10:19:53 +0000 (10:19 +0000)]
Document resolv_conf_sortlist.

9 years agoWhen printing the interfaces resolv.conf we should preserve whitespace
Roy Marples [Thu, 11 Aug 2011 09:18:16 +0000 (09:18 +0000)]
When printing the interfaces resolv.conf we should preserve whitespace
on lines with information.

9 years agoRespect the sortlist resolv.conf option
Roy Marples [Wed, 10 Aug 2011 20:02:18 +0000 (20:02 +0000)]
Respect the sortlist resolv.conf option

9 years agoMatch the --libexecdir behaviour of dhcpcd
Roy Marples [Wed, 10 Aug 2011 20:00:31 +0000 (20:00 +0000)]
Match the --libexecdir behaviour of dhcpcd

10 years agoRelease openresolv-3.4.4 openresolv-3.4.4
Roy Marples [Mon, 25 Jul 2011 20:22:55 +0000 (20:22 +0000)]
Release openresolv-3.4.4

10 years agoDon't write pdnsd.conf if it doesn't exist or it's not writeable.
Roy Marples [Mon, 25 Jul 2011 20:21:59 +0000 (20:21 +0000)]
Don't write pdnsd.conf if it doesn't exist or it's not writeable.

10 years agoRelease openresolv-3.4.3 openresolv-3.4.3
Roy Marples [Mon, 25 Jul 2011 19:35:02 +0000 (19:35 +0000)]
Release openresolv-3.4.3

10 years agoTry to ensure that the directories our config files want to live in exist.
Roy Marples [Sun, 24 Jul 2011 14:56:05 +0000 (14:56 +0000)]
Try to ensure that the directories our config files want to live in exist.

10 years agoUse printf %s
Roy Marples [Mon, 13 Jun 2011 15:22:02 +0000 (15:22 +0000)]
Use printf %s

10 years agoFix pdnsd for printf(1)
Roy Marples [Mon, 13 Jun 2011 13:33:22 +0000 (13:33 +0000)]
Fix pdnsd for printf(1)
More for #14

10 years agoUse printf %s for printing interface names.
Roy Marples [Mon, 13 Jun 2011 13:23:35 +0000 (13:23 +0000)]
Use printf %s for printing interface names.
More for #14

10 years agoRelease openresolv-3.4.2 openresolv-3.4.2
Roy Marples [Mon, 13 Jun 2011 10:36:47 +0000 (10:36 +0000)]
Release openresolv-3.4.2

10 years agoUse printf %s so user send data cannot do any formatting.
Roy Marples [Mon, 13 Jun 2011 10:34:00 +0000 (10:34 +0000)]
Use printf %s so user send data cannot do any formatting.
Important for handling some IPv6 addresses.
Fixes #14.

10 years agoImprove shell portability
Roy Marples [Wed, 1 Jun 2011 06:20:02 +0000 (06:20 +0000)]
Improve shell portability
Thanks to jilles@FreeBSD.org
Fixes #15

10 years agoRemove extra BUGS section.
Roy Marples [Fri, 13 May 2011 19:24:53 +0000 (19:24 +0000)]
Remove extra BUGS section.
Fixes #13.

10 years agoTypo.
Roy Marples [Thu, 21 Apr 2011 09:57:09 +0000 (09:57 +0000)]
Typo.
Fixes #12.

10 years agoRelease openresolv-3.4.1 openresolv-3.4.1
Roy Marples [Tue, 28 Dec 2010 16:17:03 +0000 (16:17 +0000)]
Release openresolv-3.4.1

10 years agoFix rc-service call by passing -Ds to the service and not rc-service.
Roy Marples [Thu, 23 Dec 2010 22:22:38 +0000 (22:22 +0000)]
Fix rc-service call by passing -Ds to the service and not rc-service.

10 years agoExport LOCALNAMESERVERS for any non shell subscribers.
Roy Marples [Fri, 5 Nov 2010 09:28:43 +0000 (09:28 +0000)]
Export LOCALNAMESERVERS for any non shell subscribers.

10 years agoRelease openresolv-3.4.0 openresolv-3.4.0
Roy Marples [Fri, 5 Nov 2010 07:34:36 +0000 (07:34 +0000)]
Release openresolv-3.4.0

10 years ago-d instead of -x
Roy Marples [Thu, 4 Nov 2010 15:51:01 +0000 (15:51 +0000)]
-d instead of -x

10 years agoAdd a kuldge so named can work out of the box on Debian
Roy Marples [Thu, 4 Nov 2010 15:46:21 +0000 (15:46 +0000)]
Add a kuldge so named can work out of the box on Debian
as the init script there is called bind9.

10 years agoAllow service names to be configured.
Roy Marples [Thu, 4 Nov 2010 14:42:02 +0000 (14:42 +0000)]
Allow service names to be configured.

10 years agoFix invoke-rc.d a little.
Roy Marples [Thu, 4 Nov 2010 14:41:51 +0000 (14:41 +0000)]
Fix invoke-rc.d a little.

10 years agoFix for Makefile syntax.
Roy Marples [Thu, 4 Nov 2010 12:58:21 +0000 (12:58 +0000)]
Fix for Makefile syntax.

10 years agoWorkaround a bug in the dash shell
Roy Marples [Thu, 4 Nov 2010 12:56:31 +0000 (12:56 +0000)]
Workaround a bug in the dash shell

10 years agoMatch copyright in other subscribers
Roy Marples [Thu, 4 Nov 2010 11:57:28 +0000 (11:57 +0000)]
Match copyright in other subscribers

10 years agoUse a configure command instead of working things out in the Makefile.
Roy Marples [Thu, 4 Nov 2010 11:40:19 +0000 (11:40 +0000)]
Use a configure command instead of working things out in the Makefile.
This makes us a little more lean and mean and allows us to add an override
for ArchLinux, fixing #10.

10 years agoIf local name servers are configured by resolvconf -a lo we need to
Roy Marples [Sat, 30 Oct 2010 13:17:59 +0000 (13:17 +0000)]
If local name servers are configured by resolvconf -a lo we need to
respect that.

10 years agoFix for no entries.
Roy Marples [Sat, 30 Oct 2010 12:19:21 +0000 (12:19 +0000)]
Fix for no entries.

10 years agoAllow search domains and name servers to be appended.
Roy Marples [Fri, 29 Oct 2010 18:48:10 +0000 (18:48 +0000)]
Allow search domains and name servers to be appended.

10 years agoAllow pdnsd_conf to work without pdnsd_resolv.
Roy Marples [Fri, 29 Oct 2010 18:37:55 +0000 (18:37 +0000)]
Allow pdnsd_conf to work without pdnsd_resolv.

10 years agoDocument pdnsd_conf option.
Roy Marples [Fri, 29 Oct 2010 16:22:25 +0000 (16:22 +0000)]
Document pdnsd_conf option.