absss
1st June 2009, 08:42
Hey guys,
I'm new to these forums and need some help on configuring the dns server bind.
Basically what i want to accomplish in my local home network is to create a DNS Server that will take ANY request by the user and resolve it to a single IP address (my webserver).
I have it working properly if you go to a domain such as www.google.com, it will redirect to my webserver. But it doesnt work if you have file paths in your web address for example www.google.com/path/here/filename.html. By typing that address in the browser, you are sent back what i believe to be an nxdomain error. It cannot find the URL requested with paths.
/etc/bind/named.conf:
zone "." {
type master;
file "/etc/bind/db.bhole";
};
/etc/bind/db.bhole:
$TTL 604800
@ IN SOA . root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS .
*. IN A 192.168.1.103 ; IP Address of web server
Im trying to achieve a captive portal type solution with the resources and time frame i have. I don't need the internet to work - i just need to redirect all requests by the user to my webpage.
I'm new to these forums and need some help on configuring the dns server bind.
Basically what i want to accomplish in my local home network is to create a DNS Server that will take ANY request by the user and resolve it to a single IP address (my webserver).
I have it working properly if you go to a domain such as www.google.com, it will redirect to my webserver. But it doesnt work if you have file paths in your web address for example www.google.com/path/here/filename.html. By typing that address in the browser, you are sent back what i believe to be an nxdomain error. It cannot find the URL requested with paths.
/etc/bind/named.conf:
zone "." {
type master;
file "/etc/bind/db.bhole";
};
/etc/bind/db.bhole:
$TTL 604800
@ IN SOA . root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
IN NS .
*. IN A 192.168.1.103 ; IP Address of web server
Im trying to achieve a captive portal type solution with the resources and time frame i have. I don't need the internet to work - i just need to redirect all requests by the user to my webpage.