Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Can I specify DNS servers for multiple domains.
For example there are 3 domains for which I know the DNS server which would resolve the domain name, so can I specify something like
b.com (domain)
u1.x1.y1.z1 (DNS server IP address which would resolve b.com)
l.m.n.o (default DNS server used if above DNS server unavailable)
c.com (domain)
u2.x2.y2.z2 (DNS server IP address which would resolve c.com)
l.m.n.o (default DNS server used if above DNS server unavailable)
d.com (domain)
u3.x3.y3.z3 (DNS server IP address which would resolve d.com)
l.m.n.o (default DNS server used if above DNS server unavailable)
please refer https://github.com/whitekid/dnspost
this provide max osx's resolver functionality.
Will following help. In /etc/resolv.conf I will specify,
search b.com
nameserver u1.x1.y1.z1
search c.com
nameserver u2.x2.y2.z2
search d.com
nameserver u3.x3.y3.z3
For d.com, NS u3.x3.y3.z3 will be used (other NS's i.e. u1.x1.y1.z1 and u2.x2.y2.z2 will not be tried for d.com)?
If input domain does not match any of the above given domains then local nameserver will be used?
Also local nameserver will be used if above nameservers are not available or respond with NO?
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I want to set up a reverse proxy in my home network. The idea is to route traffic to correct port number based on subdomain in the request URL.
Example: I'm setting two subdomain A records on my domain: nas.mydomain.tld and wiki.mydomain.tld. Both A records point to my dedicated IP address at home. I want a reverse proxy that routes:
nas.mydomain.tld => 192.168.2.2:5001
wiki.mydomain.tld => 192.168.2.2:8090
Can this be done in e.g. my ASUS RT-AC55U router, or can I route all traffic to my file server and have a reverse proxy there route the traffic to correct IP addresses and ports?
From what I found out, the problem lies in that the functionality I want (multiple types of content retrieved from the same IP and port) cannot be done without some kind of middle-man; a reverse proxy server that fetches the content based on the URL and relays it.
Asus router: My ASUS RT-AC55U router doesn't have a reverse proxy server, at least not with standard firmware. I haven't researched if some unofficial kind of firmware contains a reverse proxy server for doing this. So the only option is to use a NAT record to route port 80 to a specific port. The downside is that it only supports one web service on the IP address.
Web hotel: Creating a rewrite in a .htaccess file on the web hotel of a registrar, but it will only redirect and not rewrite/mask URL. Otherwise, the registrar would need a reverse-proxy server to fetch the content from the web services to relay it. I don't think my current registrar supports this, and I can understand if they don't want to do it from a security standpoint.
Apache reverse proxy server: Apache supports this using the mod_proxy module and an entry in the conf file. More info on it here: https://httpd.apache.org/docs/2.4/vhosts/examples.html#proxy
CCProxy: CCProxy is definitely the easiest solution that I've found so far. It's a simple GUI application where you can add URL's, host names/IP addresses and ports, and the application takes care of the rest. Also has a very nice graphical representation of usage/bandwidth, and a graphical log of ongoing sessions. More info here: http://www.youngzsoft.net/ccproxy/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
My server IP is : 103.11.xx.xxx
I followed setting up my VPS from here
and, I had to copy and edit etc/bind/db.local to etc/bind/db.mywebsite:
; BIND data file for mywebsite.com
;
$ORIGIN mywebsite.com.
$TTL 604800
# IN SOA ns1.mywebsite.com. myemail.mywebsite.com. (
2009120101 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS ns1.mywebsite.com.
IN NS ns2.mywebsite.com.
IN MX 10 mail.mywebsite.com.
localhost IN A 127.0.0.1
mywebsite.com. IN A 123.45.67.91
ns1 IN A 123.45.67.89
ns2 IN A 123.45.67.90
www IN A 123.45.67.91
ftp IN A 123.45.67.91
mail IN A 123.45.67.92
boards IN CNAME www
my questions is:
how do i get IP 123.45.67.89, 123.45.67.90, 123.45.67.91 and 123.45.67.92. Which is part of the IP of my server IP (103.11.xx.xxx).
how about another IPs, do i have to generate a new ip on the server? and what are the benefits of many ip like this?
how about 1.168.192.in-addr.arpa if I used IP 103.11.xx.xxx?
what is the meaning 'myemail' in ns1.mywebsite.com. myemail.mywebsite.com. whether the user like 'root' etc?
As a beginner, I very confused and many..many.. thank you in advance for your help..
If i got it right and you don't have another IPs except 103.11.xx.xxx, you have to request your hosting-provider in order to get new IPs. It's good to have more than just one IP in case of DDOS on your server (especially, when second IP routed through network with anti-DDOS configuration) or blacklisting of your IP. That's not the only reasons to have more than one IP, but for me they are the must important.
1.168.192.in-addr.arpa - this is a reverse DNS zone, which is responsible for answers to reverse DNS requests, for example, when some SMTP server receiving mail from your MTA, it checking out if your IP matches your domain name, and if it doesn't, it could reject your mail. In other words, regular DNS request trying to match a pair domain name:IP and reverse - IP:domain name.
myemail.mywebsite.com. - this is an email address of a person, who's responsible for that particular DNS-server or DNS-zone. In our case, that's you, my friend. )
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I was to check this URL:
http://geotool.servehttp.com
Is this some sort of suspicious behavior? I can't understand.
My local hosts file (I am using Windows 7 - 64 bit) shows nothing about this domain.
I also made an online whois query on it and there I found 127.0.0.1 as its IP address!!!
What's the magic behind this?
Edited
When I point to this URL, using my browser, the localhost (WAMP server) homepage loads.
Whoever configured the DNS records for geotool.servehttp.com pointed that subdomain name to 127.0.0.1.
It is not usual to point a public hostname to a private IP address, but it is possible.
Here are the results from dig +trace geotool.servehttp.com A:
geotool.servehttp.com. 60 IN A 127.0.0.1
servehttp.com. 86400 IN NS nf3.no-ip.com.
servehttp.com. 86400 IN NS nf4.no-ip.com.
servehttp.com. 86400 IN NS nf2.no-ip.com.
servehttp.com. 86400 IN NS nf5.no-ip.com.
servehttp.com. 86400 IN NS nf1.no-ip.com.
;; Received 151 bytes from 83.222.240.75#53(83.222.240.75) in 153 ms
Four Years ago, I asked this question and now, I am posting an answer to it for any further reference.
DNS Information
TXT Record:
AUTHORITY
servehttp.com. IN SOA nf1.no-ip.com. hostmaster.no-ip.com.
This text record tells us that the domain geotool.servehttp.com probably belongs to no-ip.com.
Visiting internet website for http://no-ip.com (which currently redirects to https://noip.com), a simple slogan tells us everything:
Create an easy to remember hostname and never lose your connection again.
Our Dynamic DNS solution makes it easy to remote access any internet connected device.
That is, a Dynamic DNS service. It helps you reach your local hosted application or network through internet by assigning a dns name to your dynamic always changing ip address.
That's it.
The question asks 'why', so I would like to share my reason.
I wrote a proxy software called vproxy, so I bought domain vproxy.cc.
In the software it runs dns health check periodically to see if the dns server is still available (otherwise it will stop sending dns requests to that server).
The health check is enabled by default, so I have to choose a domain which simply does nothing but returning a constant A record (ipv4 address).
So here comes 127.0.0.1.special.vproxy.cc, which resolves to 127.0.0.1. The domain and address are hardcoded into the software as the default dns health check settings.
Using 127.0.0.1 is simply because it's a loopback address and if someone accidently send traffic to this domain/address, he/she would be sending to local and would not cause any trouble for other people.
And the reason I'm not choosing other 127.x.y.z ips is because they are not so well known as 127.0.0.1 do. Most people don't know that 127/8 are all loopback addresses, but people do know 127.0.0.1.
And for geotool.servehttp.com, maybe the maintainer simply want the same thing as I do? Just some const address which is choosen to be 127.0.0.1.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Thanks you for your time.
I have just set up a Postfix mail server which is running as MTA in one of my aws instances. I can successfully connect to the localhost through 'telnet localhost 25', and I can send emails to both external and internal email accounts when connected on localhost, however whenever I try to connect through 'telnet zwitch.it 25' or 'telnet mail.zwitch.it 25' I get a connection timeout.
I have set up all my records, including the MX record and the SPF record with the values "v=spf1 include:amazonses.com include:zwitch.it -all" and "spf2.0/pra include:amazonses.com include:zwitch.it ~all".
I really cannot find what is the problem here, if there is a firewall, or if the port is blocked, or maybe something is wrong with my postfix configuration... I would really appreciate if you could help me.
To set up my postfix mail server I followed the instructions at http://flurdy.com/docs/postfix/ where it mentions the installation of a simple postfix server.
I thank you in advance for the help.
EDIT:
Thanks to the answer below the problem was fixed. I only had to go on my aws security groups and add SMTP to the list!
It's one of three things:
1.) You need to edit your security group in AWS to allow port 25 from all external IP addresses.
2.) Your DNS entries for mail.zwitch.it do not point to the external IP address of the AWS instance.
3.) You don't have a static IP (elastic) address configured for the instance.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a linux machine Iam using as a router with multible interfaces and multible internet connection
say eth0--isp1
eth1--isp2
eth2--isp3
the gateway is eth0 throw isp1
and eth3--local1 10.0.0.x
eth4--local2 192.168.1.x
i need local1 ip 192.168.1.10 to go throw isp3, eth2
thanks
You need to use policy routing for this. You create a new routing table and use it when the source IP is 192.168.1.10.
ip route add ... table $TABLENUM # your usual routes, for the new table
...
ip route add default via $ISP3 table $TABLENUM # gateway for the new table
ip rule add from 192.168.1.10/32 lookup $TABLENUM # use the new table for this IP
ip rule add to 192.168.1.10/32 lookup $TABLENUM # make it symmetric, for clarity
Try route add 192.168.1.0 netmask 255.255.255.0 dev eth4--local, on the assumption these are locally-connected networks. If not, you will need to specify a gateway machine to route the packets through also. Truthfully your question is malformed (and probably belongs on serverfault). If you already have addresses on those networks, these routes should already exist. If you do not, your problem is likely more complicated than you think it is.