Allowing +trace in Unbound

By default, +trace works when querying Bind server as it returns root hints as NS-list for “.”. However, +trace disables RD flag and the first query (dig +norecurse NS .) is REFUSED by unbound. The fix:

In unbound.conf, change
access-control: 10.0.0.0/8 allow
to
access-control: 10.0.0.0/8 allow_snoop

Change allow to allow_snoop for all subnets served by your Unbound server. This allows non-recusive query for root NS entries.


Welcome back

Finally got my website online after a very long break. Thanks for visiting the site. Please leave your comments and suggestions. More contents will come gradually as I get more time to update it.


Ubuntu – GRE Tunnel

Creating a tunnel on Ubuntu Edit /etc/network/interface file and add this code auto gre1 iface gre1 inet static address netmask pointopoint pre-up iptunnel add gre1 mode gre local remote ttl 255 up ifconfig gre1 multicast post-down iptunnel del gre1 You might also need to “modprobe ip_gre” in some cases before activating the tunnel.


Ubuntu – disable USB automount

Hate it when Ubuntu unnecessarily mounts USB drives when you are doing some R&D. Here’s a quick way to disable it. $ gconftool-2 –type bool –set /apps/nautilus/preferences/media_automount false You can also use gconf-editor to set it to false. Once done, just set it to true again to make it auto-mount.


Ubuntu – reset root password

If you forgot your root password or to login to Ubuntu (for recovery) without the root password, follow these simple steps: While the computer boots, press ‘Esc’ as soon as the Grub loads to go into the menu. Press ‘e’ to edit the boot menu Select the kernel line and again press ‘e’ remove the […]