-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to rewrite ptr records #2
Comments
The data rule should rewrite it, what do the logs state ? |
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 Here is "nslookup nginx-rc1-77bpb.k8s.test.com" 127.0.0.1 logs :
and here is "nslookup 10.30.253.110 127.0.0.1" logs:
@akissa |
You should be looking up |
|
dig @127.0.0.1 PTR 110.253.30.10.in-addr.arpa. Can not rewrie to 'nginx-rc1-77bpb.k8s.test.com', still is "nginx-rc1-77bpb.nginx-deploy.default.svc.cluster.local."
]# dig @127.0.0.1 PTR 110.253.30.10.in-addr.arpa. ; <<>> DiG 9.9.4-RedHat-9.9.4-38.el7_3.3 <<>> @127.0.0.1 PTR 110.253.30.10.in-addr.arpa. ;; OPT PSEUDOSECTION: ;; ANSWER SECTION: ;; Query time: 0 msec |
On a side note your regex is incorrect, you need to escape all the dots. What does the log show ? |
@akissa @kapilth
then test nslooup:
Looks like no change!!!
|
for example, corefile :
~]# nslookup nginx-rc1-77bpb.k8s 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: nginx-rc1-77bpb.k8s.test.com
Address: 10.30.253.110
~]# nslookup 10.30.253.110 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
110.253.30.10.in-addr.arpa name = nginx-rc1-77bpb.nginx-deploy.default.svc.cluster.local.
### how to rewrite "nginx-rc1-77bpb.nginx-deploy.default.svc.cluster.local." to "nginx-rc1-77bpb.k8s.test.com" ??
The text was updated successfully, but these errors were encountered: