Posts
Powerdns no answer on A records and others
Observed:
mother ~ # dig mother.titify.com ; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mother.titify.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12227 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;mother.titify.com. IN A ;; Query time: 1 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Sat Sep 28 18:08:19 2013 ;; MSG SIZE rcvd: 35
As you can see, there is a QUESTION section, but no ANSWER. This is an example with a CNAME:
Hint of the day: run-parts and not executing files
If you have a rc.local looking like this:
/bin/run-parts /etc/rc.local.d
and files in /etc/rc.local.d looking like this
hostname.sh sshkeys.sh firstboot.sh
it’s not going to work.
Why, you ask, after cursing and shouting for the past hour?
because run-parts ignores files with dots (".") and/or .sh files.
Yes. True story.
rename all the files to:
hostname sshkeys firstboot
and your problem will be solved (and of course chmod +x them).
Hint of the day: @digitalocean and not mounting sshfs at boot
In /etc/fstab, be sure to add the option:
_netdev
As it will attempt to start the network mounted sshfs before networking has been started.
The entire line looks like this:
user@host:/some/dir /local/path fuse.sshfs defaults,idmap=user,_netdev 0 0
From the man pages:
_netdev
The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).
Chinese Man - I've Got That Tune
A classic.