Closed. This question is not about programming or software development. 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 2 months ago.
Improve this question
I'm using macOS Ventura (13.0.1).
Using 4km3/dnsmasq to spin up a DNS server on my local machine. Using subnet 10.6.0.0/16 and assigned static IP 10.6.0.2. I've added the DNS server IP address in my network settings.
Here's what happening
$ dig +short my.domain.test
10.6.0.6
$ host my.domain.test
my.domain.test has address 10.6.0.6
$ nslookup my.domain.test
Server: 10.6.0.2
Address: 10.6.0.2#53
Name: my.domain.test
Address: 10.6.0.6
$ curl -i -v -4 my.domain.test
* Could not resolve host: my.domain.test
* Closing connection 0
curl: (6) Could not resolve host: my.domain.test
When it doesn't work, the DNS server doesn't seem to be queried.
I've found many other post on the same problem but none of them seems to resolve my issue.
To get the API calls to work, I need this to work with curl.
[It works on Chrome Browser, doesn't work on Safari]
As it turns out, curl doesn't care about local DNS. The domain name needs to exist ON THE INTERNET. curl looks for records in root servers. So, even if your DNS record resolves, you can't really access them in all the ways you want. Some will work, some won't.
One solution for this would be, register an actual domain name. Then point the domain name to your private IP addresses or whatever you want to point it to. You can have additional DNS server on your local machine.
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 11 months ago.
Improve this question
I'm having a hard time viewing Wildfly welcome page on port 8080 + tried apache on port 80 too, and they timeout. I can ssh to the server and using (curl localhost:8080) and (curl localhost:80) show Wildfly and apache welcome pages respectively. I have checked the Security List and Security groups and even opened ALL traffic just to see if they are causing this problem, but unfortunately the problem still there.
I'm using ubuntu 20.04 image and the UFW (firewall) is inactive so the problem isn't from there.
By default every oracle instances come with 2 firewall.
Hardware Firewall (Known as VCN)
Software Firewall (They use a very hard iptables rules and regular ufw doesn't work with that.)
The 2nd option is very annoying and also took me about 3 days to solve my problem. You can follow my following instructions and hopefully it will also fix your problem.
1st you have to open the port on the Hardware Firewall (VCN) and when you believe you have opened the port then by login to the server using ssh use this command to clear the default oracle iptables rule.
sudo iptables -F
But remember whenever you will reboot the server you will need to again run the flash command. So if you don't want to run this command every time after server reboot. Then after running the flash command run this command to save your flashed iptables rules.
sudo netfilter-persistent save
So, you will not need to run the iptables falsh command every time on the startup of the server.
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 recently did an implementation of our local environment on the basis of Minikube. In my automation scripts for env provision I relied on the fact that minikube tunnel exposes services with LB type at 127.0.0.1 local IP - this is what happens on my macOS.
However, a developer with Ubuntu (running under VirtualBox) complained that for him External IP is never a loopback one, it's always something from the 10.0.0.0/8 subnet.
At this point I am trying to figure out what is the best course of action:
Try to force somehow External IPs on all platforms to be 127.0.0.1. IDK if possible, couldn't find anything on that.
Or fall back to some other way to reliably find the external IP for any given service. I assume I can use kubectl output to grep the External IP, but that will add overhead and latency in scripts I was hoping to avoid.
What is the cheap and reliable host-agnostic way to find External IP for any given service within the cluster?
Well I don't think 1. is possible. Similar to you, I could not find any information.
I think option 2 is good, but you don't have to use grep. You can use kubectl built in JSONPath Support and set IP address as variable (example in bash):
IP_ADDRESS=$(kubectl get service {your-service} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
You may also use NodePort and do not use minikube tunnel at all:
IP_ADDRESS=$(minikube ip && kubectl get service {your-service} -o jsonpath="{.spec.ports[0].nodePort}")
IP_ADDRESS=$(echo $IP_ADDRESS | sed 's/ /:/g')
Or get it using minikube service --url <service-name> command, but the output starts with http://:
user#shell:~$ minikube service --url my-service
http://{ip-of-the-node}:{node-port}
Another option is to run in the background kubectl port-forward command at the beginning of the script and use localhost address everywhere, but I think previous solutions are better and more reliable.
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 7 years ago.
Improve this question
I'm trying to run an installation (for a software called Prohits to manage mass spectrometry data) on my localhost server.
One of the requirements is that it occurs over a static IP address. So I set up a static IP address using directions here and verified that it worked by navigating to other webpages. However, the installation is still not able to run and still shows the following error:
WebAddress: 127.0.0.1
Use the server static IP address to run the installation. If this computer has dynamic IP address, it can only run the Lite version`
I don't know if I'm interpreting the error incorrectly or am missing something. The instructions for network configuration state 'Set a fixed IP address and DNS address for the server' which I've done.
The installation should not be run using the 127.0.0.1 address; it should be run using the same static IP address as the address that is set for the network. So if the static IP address is set to something like 192.45.134.52, then the localhost server should also be running on that same address.
To implement this change, open up the hosts file at /etc/hosts and change your localhost server's IP address to the static IP address you set (in this example, 192.45.134.52).
Closed. This question is not about programming or software development. 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 months ago.
Improve this question
To get to the IP address of an example website, you just visit
subdomain.example.com
However, if I try to visit
subdomain.2.1.33.111 (example ip)
Firefox returns an error.
Why?
All browsers will return an error for this. The reason is that subdomains are part of the DNS (Domain Name Service) system, where IP addresses are related to the underlying IP protocol.
The best way to think of this relationship is that domains (including subdomains) are human-readable labels which DNS then allows you to point to IP addresses. It would not be very catchy to have an IP address as your website on a TV ad, for example.
There is much more detail on DNS and IP addresses if you want to delve into more detail than this.
IP addresses don't support subdomains. If your goal is to serve several application on server without an assigned domain, the best way is to use ports:
2.1.33.111:8080
Some ports may already be in use or blocked for security reasons. If you need a list of some recommended ports, you could try using the same ones that Cloudflare supports.
HTTP:
80
8080
8880
2052
2082
2086
2095
HTTPS:
443
2053
2083
2087
2096
8443
This isn't possible via firefox. However a work around is to edit your OS hosts file see: wikipedia.
Create or edit and add a line like:
192.168.1.100 subdomain.example.com
Remember to remove the line when you're done!
You can't mix a subdomain (DNS name) with an IP (no DNS name)
Try to use /etc/hosts file. For instance:
# IP Hotsname
2.1.33.111 subdomain.example.com
For Firefox It's ok but Chrome resolves names in a fancy way.
A hostname is a domain (or subdomain) name that has at least one associated IP address.
The associated IP address to a domain name might differ for subdomains.
You can get the associated IP address of a domain (or subdomain) with nslookup.
Try nslookup example.com vs. nslookup subdomain.example.com to see the difference.
If firefox (or other browsers) you can either enter the hostname (e.g. example.com or subdomain.example.com) or the IP address (e.g. 11.22.33.44).
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
I'm a newbie in working with remote servers and in working with FreeBSD. I want to connect to the FreeBSD running on a virtual machine on my Windows 7 in order to be able to see the files with an explorer interface and be able to copy/paste files to and from it.
I have done this before a while ago using WinSCP but that time it took me 3 days to figure out the configurations I need to make the connection and unfortunately I can't remember them now and do not have another 3 days to waste!!
In my active networks I see to VMware Network adaptors (VMware is the virtual machine I am using) which have the IPv4s: 192.168.134.1 and 192.168.80.1 and when I run "ifconfig" on my virtual FreeBSD there is no IP address (except inet 127.0.0.1). The hostname of FreeBSD is "FreeBSD1" .
WinSCP requires me to fill in a file protocol which I think should be FTP **(correct me if I'm wrong; the other options are SFTP and SCP), a port number (which it sets to 21 by default for FTP) a hostname which I have tried "FreeBSD1", "192.168.134.1" and "192.168.80.1" with my username(root) and password.
When I use the hostname "FreeBSD1" I get the error:
"The requested name is valid, but no data of the requested type was found.
Connection failed."
and for the other two I get:
"No connection could be made because the target machine actively refused it.
Connection failed."
The only thing is, as far as I remember, last time I tried (and succeeded after 3 days) "ifconfig" would show an IP which I think I used as hostname.
** For FTP it also requires an encryption which I set to no encryption. The other options are "SSL/TLS Implicit", "SSL Explicit" and "TLS Explicit".
Any help would be appreciated!
Your Windows machine does not recognize the FreeBSD1 hostname ("The requested name is valid, but no data of the requested type was found" error). So there's no point trying that further.
But it seems that the IPs work, just the FTP port 21 is not open ("No connection could be made because the target machine actively refused it" error).
I would actually not expect that FreeBSD has unencrypted FTP port opened by default. I guess you will have more luck with SFTP (SSH).