1,159 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
1
answer
62
views
How to connect paramiko ssh with - option in python [duplicate]
i want to connect ssh with paramiko. some information below
ssh [email protected] -p55555
so, host name is XXX.XXX.XXX.XXX -p55555 but it doesn't work.
maybe -p55555 (ssh option) is the problem..
how ...
0
votes
0
answers
38
views
Docker compose pluging + swarm + node attributes not working
Docker version:
Client: Docker Engine - Community
Version: 27.5.0
API version: 1.47
Go version: go1.22.10
Git commit: a187fa5
Built: Mon Jan 13 15:25:19 ...
0
votes
1
answer
127
views
Unable to resolve host \"example.org.br\": No address associated with hostname. Expo + React-native + Android
I'm trying to do a POST http request to get the user token in my application.
It WORKS if using the WEB version (same code), and in the http client (Bruno).
I can't show the real API address, but is ...
0
votes
1
answer
91
views
Regex to extract hostname from fqdn in string with multiple words
I have a number of strings that could look anything like this
apl22002.prod.f02.dc2.example.com - DC2H2
N2 - apl220010.prod.f02.dc2.example.com
I would like a regex to match just the hostname, e.g. ...
0
votes
0
answers
127
views
AWS Ubuntu EC2 instance, should cat /etc/hostname in fact be the (current) IP?
I'm looking at an EC2 instance and ...
# cat /etc/hostname
ip-172-31-69-69
and ...
# cat /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ...
0
votes
1
answer
400
views
Ubuntu Server as WLAN Router using NetworkManage and Netplan - How to get Router to DNS resolve its own hostname?
I'm building a WLAN Router out of a Raspberry Pi 4. The internal WLAN adapter is used as Hot-Spot access point, the internal ethernet will be connected to the net.
I'm using NetworkManager and Netplan ...
0
votes
1
answer
513
views
Not able to resolve any hostnames inside docker container using WSL2, docker-ce and DDEV
I am currently not able to resolve any hostnames inside my DDEV web container.
curl www.youtube.com is working perfectly fine inside WSL 2, but once I ssh into the ddev web container using ddev ssh ...
0
votes
0
answers
170
views
How to get hostname for an IP like this ? 2a03:2880:f804:19::
On my website, I a trying to verify the hostname of visitors, in order to manage bad bots, and most crawlers (e.g Google) recommends to check reverse DNS records (get hostname of visitor IP, then get ...
1
vote
2
answers
404
views
How to get the host name in Zig
I am very new to Zig, and I want to get the host name of my machine. There was a std.os.gethostname() function in Zig, but it's gone now (currently using v0.12).
There's a std.c.gethostname() function,...
-1
votes
1
answer
417
views
Why can't I resolve the hostname found in traceroute by nslookup/dig ? [closed]
Here I found some router hostnames in traceroute:
...
3 10.30.31.1 10.30.31.1 1.271
4 46.33.68.129 ae1-1989.cr4-ams2.ip4.gtt.net 2.697
5 213.200.117.58 ae15.cr6-ams1.ip4.gtt.net 2.098
...
1
vote
0
answers
27
views
The hostname_script is not setting ec2 instance name
I am passing below user_data to aws_instance resource and found the host didn't get renamed as per the my requirement
user_data = jsonencode({
cluster_name = local.cluster_name,
...
1
vote
2
answers
89
views
How can I cleanly do a lookup of a value with a substring extracted from a hostname in bash?
the following bash regex will set the memory variable according to machine hostname name
we have in the lab many machines with different name as following small example
presto01
presto02
hadoop01
...
0
votes
2
answers
97
views
Python, Special case to extract hostnames?
I've seen similar problems but mine is quite different and I can't solve it alone.
Given a line of text I want to extract only the hostname, below are examples of input - output pairs I'm expecting:
...
-1
votes
1
answer
2k
views
Ansible hostname module, set hostname based on IP address
I'm trying to use the ansible hostname module to change hostname of multiple Raspberry Pi Compute Module 4. Because they are all based from the same Raspberry Pi OS image, their hostname is ...
1
vote
1
answer
797
views
How do I `hostnamectl set-icon-name` via Ansible?
Red Hat has a command called hostnamectl set-icon-name. Is it correct to configure this using Ansible?
The usual command
ansible.builtin.shell: "hostnamectl set-icon-name {{ inventory_hostname }}&...