All went well in my setup, I just have to adapt some paths and made use of bind conventions described in arch wiki.
All well, except the fundamental: wildcard subdomain. After googling a bit and read some similar questions in stackoverflow this was my final configuration:
- /etc/named.conf
zone "dev.com" {
type master;
file "dev.com.zone";
};
- /var/named/dev.com.zone
;If you don't catch the difference, I changed the line: "* IN A 127.0.0.1" with "* IN CNAME dev.com.".
; BIND data file for local loopback interface
;
$TTL 14400
@ IN SOA dev.com. root.dev.com. (
2014110801 ; Serial
86400 ; Refresh
7200 ; Retry
3600000 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS dev.com.
@ IN A 127.0.0.1
* IN CNAME dev.com.
@ IN AAAA ::1
PS.: This is NOT a tutorial, so read the post linked in the start to make this works as you expect, since there contains what more you need to configure.
Nenhum comentário:
Postar um comentário